Control.Monad.Logic (original) (raw)

Contents

Synopsis

Documentation

logic :: (forall r. (a -> r -> r) -> r -> r) -> Logic aSource

A smart constructor for Logic computations.

runLogic :: Logic a -> (a -> r -> r) -> r -> rSource

Runs a Logic computation with the specified initial success and failure continuations.

The LogicT monad transformer

newtype LogicT m a Source

A monad transformer for performing backtracking computations layered over another monad m

runLogicT :: LogicT m a -> (a -> m r -> m r) -> m r -> m rSource

Runs a LogicT computation with the specified initial success and failure continuations.