monad-lgbt-0.0.2: Monad transformers for combining local and global state.

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Backtrack

Description

Simple monad that allows _depth-first_ backtracking instead of fair conjunction/disjunction behaviour as in LogicT.

Documentation

runBacktrackT :: BacktrackT r m a -> (String -> m r) -> (a -> m r) -> m r Source