monad-choice-0.2.0.0: Monad, monad transformer, and typeclass representing choices.

Copyright(c) Eamon Olive 2020
(c) Louis Hyde 2020
LicenseAGPL-3
Maintainerejolive97@gmail.com
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Choice.Covariant

Description

 

Documentation

runChoice :: (forall x. f x -> x) -> Choice f a -> a Source #

runChoiceM :: Monad m => (forall x. f x -> m x) -> Choice f a -> m a Source #

runBacktrackableChoiceM :: Monad m => (forall x. f x -> m (Maybe x)) -> Choice f a -> m (Maybe a) Source #