Changelog for monad-choice-0.2.0.0
Changelog
0.2.0.0 (2020-03-27)
Fixed broken MonadChoice instance for MonadRandom types and fixed, expanded, and fine tuned dependency version requirements.
Additions
UniformRandom- Created marker
newtypeUniformRandomthat provides aMonadChoiceinstance for members of theMonadRandomtypeclass. - Added functions
liftandcoliftto wrap and unwrapUniformRandom, respectively. - Added instance for
MonadChoiceusinguniformfrom theMoandRandompackage when the wrapped monad is a member of theMonadRandomclass. - Added various passthrough instances
FunctorApplicativeMonadMonadRandomMonadFixMonadFailAlternativeMonadPlusMonadIOSemigroupMonoidMonadErrorMonadReaderMonadStateFoldableTraversableEq1Ord1MonadZipMonadContEqOrdMonadRWSMonadWriterMonadSplitPrimMonadMonadInterleave
- Created marker
Removals
MonadChoice- Removed previous instance for members of the
MonadRandomtype class since it overlapped with all otherMonadChoiceinstances. - Removed passthrough instances for constant space
WriterTandRWSTiftransformersversion is less than 0.5.6
- Removed previous instance for members of the
0.1.0.0 (2020-02-29)
Inital version
Additions
MonadChoice- Created
MonadChoicetypeclass to represent that allow choices to be made by some arbitrary entity. - Added function
chooseM. - Added instances for the
ChoiceTboth covariant and invariant. - Added instance for
MonadRandominstances by using theuniformfunction. - Added various passthrough instances
MaybeTExceptTIdentityTStateTeither lazy or strictReaderTWriterTeither constant space, lazy, or strictAccumTContTRWSTeither 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
MonadReaderMonadStateMonadWriterMonadRWSMonadIO
- Function
Covariant.ChoiceT- Added functions
mapChoiceTandrunBacktrackableChoiceT.
- Added functions
Invariant.ChoiceT- Exposed constructor
ChoiceT. - Added function
invmapChoiceT. - Added various passthrough instances.
ContravariantInvariantAlternativeMonadPlusMonadError
- Exposed constructor
- Added two different versions of
Choice- Added two different versions of
Choicewhich of type aliases for eachChoiceTover theIdentitymonad. - Added function
runChoicefor each version. - For
Covariant.Choiceadded functionsrunChoiceMandrunBacktrackableChoiceT.
- Added two different versions of