monadic-bang-0.2.1.0: GHC plugin to desugar ! into do-notation
Safe HaskellNone
LanguageGHC2021

MonadicBang.Internal.Utils

Synopsis

Documentation

type DList a = Endo [a] Source #

type Handler (m :: Type -> Type) a = a -> m a Source #

Handle a specific AST node

type Try (m :: Type -> Type) 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 #