Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
LiveCoding.Coalgebra
Documentation
type StateTransition m a b s = a -> m (b, s) Source #
data Coalg m a b where Source #
Constructors
Coalg :: s -> (s -> StateTransition m a b s) -> Coalg m a b |
type AlgStructure m a b s = StateTransition m a b s -> s Source #
initiality :: Functor m => AlgStructure m a b s -> MSF m a b -> s Source #