control-dsl-0.2.0.1: An alternative to monads
Control.Dsl.Empty
data Empty r a where Source #
Constructors
Defined in Control.Dsl.Empty
Methods
runPolyCont :: Empty r' Void -> (Void -> m a) -> m a Source #
Defined in Control.Dsl.Cont
runPolyCont :: Empty r' Void -> (Void -> Cont r a) -> Cont r a Source #
Defined in Control.Dsl.State.State
runPolyCont :: Empty r' Void -> (Void -> State s r) -> State s r Source #
empty :: PolyCont Empty a Void => a Source #
Return an empty a, similar to empty.
a
empty
This empty function aims to be used as the last statement of a do block.
do