dunai-0.2.0.0: Generalised reactive framework supporting classic, arrowized and monadic FRP.

Safe HaskellSafe
LanguageHaskell2010

Control.Monad.Trans.MSF.Maybe

Contents

Synopsis

Documentation

runMaybeS'' :: Monad m => MSF (MaybeT m) a b -> MSF m a (Maybe b) Source #

Throwing Nothing as an exception ("exiting")

exit :: Monad m => MSF (MaybeT m) a b Source #

exitWhen :: Monad m => (a -> Bool) -> MSF (MaybeT m) a a Source #

exitIf :: Monad m => MSF (MaybeT m) Bool () Source #

maybeExit :: Monad m => MSF (MaybeT m) (Maybe a) a Source #

inMaybeT :: Monad m => MSF (MaybeT m) (Maybe a) a Source #

Catching Maybe exceptions

untilMaybe :: Monad m => MSF m a b -> MSF m b Bool -> MSF (MaybeT m) a b Source #

catchMaybe :: Monad m => MSF (MaybeT m) a b -> MSF m a b -> MSF m a b Source #

Converting to and from MaybeT

listToMaybeS :: Monad m => [b] -> MSF (MaybeT m) a b Source #

Converts a list to an MSF in MaybeT, which outputs an element of the list at each step, throwing Nothing when the list ends.

Running MaybeT

runMaybeS :: Monad m => MSF (MaybeT m) a b -> MSF m a (Maybe b) Source #