Safe Haskell | Safe-Inferred |
---|
This is the core of the Deriver monad, instantiated in detail in Derive.Deriver.Monad.
Synopsis
- data Deriver st err a
- type RunResult st err a = (Either err a, st, [Log.Msg])
- run :: st -> Deriver st err a -> RunResult st err a
- write :: Log.Msg -> Deriver st err ()
- throw :: err -> Deriver st err a
- modify :: (st -> st) -> Deriver st err ()
- get :: Deriver st err st
- gets :: (st -> a) -> Deriver st err a
- put :: st -> Deriver st err ()
- annotate :: (err -> err) -> Deriver st err a -> Deriver st err a
Documentation
data Deriver st err a Source #