Changelog for monad-choice-0.1.0.0
Changelog
0.1.0.0 (2020-02-29)
Inital version
Additions
MonadChoice
- Created
MonadChoice
typeclass to represent that allow choices to be made by some arbitrary entity. - Added function
chooseM
. - Added instances for the
ChoiceT
both covariant and invariant. - Added instance for
MonadRandom
instances by using theuniform
function. - Added various passthrough instances
MaybeT
ExceptT
IdentityT
StateT
either lazy or strictReaderT
WriterT
either constant space, lazy, or strictAccumT
ContT
RWST
either constant space, lazy, strictSelectT
- Created
ChoiceT
- Added two different versions of
ChoiceT
, one a covariant functor, the other an invariant functor on the category of monads. - Shared additions:
- Function
runChoiceT
- Instances for
Functor
,Applicative
,Monad
,MonadTrans
, andMonadChoice
- Various passthrough instances
MonadReader
MonadState
MonadWriter
MonadRWS
MonadIO
- Function
Covariant.ChoiceT
- Added functions
mapChoiceT
andrunBacktrackableChoiceT
.
- Added functions
Invariant.ChoiceT
- Exposed constructor
ChoiceT
. - Added function
invmapChoiceT
. - Added various passthrough instances.
Contravariant
Invariant
Alternative
MonadPlus
MonadError
- Exposed constructor
- Added two different versions of
Choice
- Added two different versions of
Choice
which of type aliases for eachChoiceT
over theIdentity
monad. - Added function
runChoice
for each version. - For
Covariant.Choice
added functionsrunChoiceM
andrunBacktrackableChoiceT
.
- Added two different versions of