| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Moo.Prelude
Contents
Description
Documentation
call :: forall component curried. (Has component D E, Call curried) => (component D -> curried) -> LiftedD curried Source #
Provided that the environment E Has a component, and
given a way of extracting from the component a curried function that
ends in a D action, lift the curried D-function into the main monad
M.
The extractor must be monomorphic on the component, so that the intended
instance of Has is picked.
The typical case is for the component to be a parameterized record and for
the extractor to be a field accessor.
Re-exports from Moo
The monad environment.