Alex Rivera | Logout

Creative uses of monads

Asked 2009-01-05T12:10:13.633
52

I'm looking for creative uses of monads to learn from. I've read somewhere that monads have been used for example in AI, but being a monad newbie, I fail to see how.

Please include a link to the source code and sample usages. No standard monads please.

Edit
Report

1 Answer

17

There's also LogicT (backtracking monad transformer with fair operations and pruning).

It has good value to AI Search algorithms because of its constructs for fair disjunctions, for example, easily enabling computations that succeed an infinite number of times to be combined (interleaved).

It's usage is described in the ICFP'05 paper Backtracking, Interleaving, and Terminating Monad Transformers

answered 2009-01-07T18:03:30.050

Your Answer