monadic-bang-0.2.2.0: GHC plugin to desugar ! into do-notation
Safe HaskellSafe-Inferred
LanguageGHC2021

MonadicBang.Internal.Utils

Synopsis

Documentation

type DList a = Endo [a] Source #

type Handler m a = a -> m a Source #

Handle a specific AST node

type Try m a = Handler (MaybeT m) a Source #

Try handling an AST node, but may fail (usually because the handler is not applicable)

fromDList :: DList a -> [a] Source #

(??) :: Functor f => f (a -> b) -> a -> f b Source #