saison-0.1: Stream Aeson, fruity, spicy, well carbonated

Safe HaskellSafe
LanguageHaskell2010

Saison.Decoding.Result

Synopsis

Documentation

newtype Result e k a Source #

TODO I'm not sure this is the type we want.

Maybe we want bundle input into this, and make this class "Profunctor-y".

Constructors

Result 

Fields

  • unResult :: forall r. (e -> r) -> (a -> k -> r) -> r
     
Instances
Functor (Result e k) Source # 
Instance details

Defined in Saison.Decoding.Result

Methods

fmap :: (a -> b) -> Result e k a -> Result e k b #

(<$) :: a -> Result e k b -> Result e k a #

pureResult :: a -> k -> Result e k a Source #

failResult :: e -> Result e k a Source #