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 |
Control.Freer.Final
Description
A final-encoded generic Freer carrier.
Synopsis
- newtype FreerFinal c f a = FreerFinal {
- unFreerFinal :: forall m. c m => (f ~> m) -> m a
- interpretFreerFinal :: c f => (e ~> f) -> FreerFinal c e a -> f a
- liftInsFinal :: ins a -> FreerFinal c ins a
Documentation
newtype FreerFinal c f a Source #
A final-encoded generic Freer carrier.
Constructors
FreerFinal | |
Fields
|
Instances
interpretFreerFinal :: c f => (e ~> f) -> FreerFinal c e a -> f a Source #
liftInsFinal :: ins a -> FreerFinal c ins a Source #