colonnade-0.1: Generic types and functions for columnar encoding and decoding

Safe HaskellNone
LanguageHaskell2010

Colonnade.Decoding

Synopsis

Documentation

contramapContent :: forall c1 c2 f a. Contravariant f => (c2 -> c1) -> Decoding f c1 a -> Decoding f c2 a Source #

Converts the content type of a Decoding. The Contravariant f constraint means that f can be Headless but not Headed.

headless :: (content -> Either String a) -> Decoding Headless content a Source #

headed :: content -> (content -> Either String a) -> Decoding Headed content a Source #