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