Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Result e k a = Result {
- unResult :: forall r. (e -> r) -> (a -> k -> r) -> r
- pureResult :: a -> k -> Result e k a
- failResult :: e -> Result e k a
Documentation
TODO I'm not sure this is the type we want.
Maybe we want bundle input into this, and make this class "Profunctor-y".
pureResult :: a -> k -> Result e k a Source #
failResult :: e -> Result e k a Source #