Copyright | (c) 2023 Yamada Ryo |
---|---|
License | MPL-2.0 (see the file LICENSE) |
Maintainer | ymdfield@outlook.jp |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | GHC2021 |
A tree-structured encoded Freer monad.
Synopsis
- newtype FreerTree f a = FreerTree {
- unFreerTree :: Free (Coyoneda f) a
- liftInsTree :: ins a -> FreerTree ins a
- interpretTree :: Monad m => (ins ~> m) -> FreerTree ins a -> m a
- interpretTreeK :: (e ~> Cont r) -> FreerTree e ~> Cont r
Documentation
newtype FreerTree f a Source #
A tree-structured encoded Freer monad.
FreerTree | |
|
Instances
liftInsTree :: ins a -> FreerTree ins a Source #