| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Colonnade.Types
- newtype Encoding f content a = Encoding {
- getEncoding :: Vector (f content, a -> content)
- data Decoding f content a where
- DecodingPure :: !a -> Decoding f content a
- DecodingAp :: !(f content) -> !(content -> Either String a) -> !(Decoding f content (a -> b)) -> Decoding f content b
- newtype Headed a = Headed {
- getHeaded :: a
- data Headless a = Headless
Documentation
newtype Encoding f content a Source #
Constructors
| Encoding | |
Fields
| |
data Decoding f content a where Source #
This just actually a specialization of the free applicative.
Check out Control.Applicative.Free in the free library to
learn more about this.
Constructors
| DecodingPure :: !a -> Decoding f content a | |
| DecodingAp :: !(f content) -> !(content -> Either String a) -> !(Decoding f content (a -> b)) -> Decoding f content b |
Isomorphic to Identity