Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
This module provides the familiar reader effect.
data Search w a
The functor representing the effect. You shouldn't need
to create this manually, just use choose
or searchFail
.
SChoose [w] (w -> a) |
choose :: (Member (Search w) r, Typeable w) => [w] -> Eff r w
Nondeterministicaly choose an element from a list
searchFail :: (Member (Search w) r, Typeable w) => T w -> Eff r ()
Fail a search. Equal to choosing from an empty list.
handleBacktrackMaybe :: Handler (Search w) r a (Maybe a)
Lazy depth first search with backtracking.