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
newtype
UniformRandom
that provides aMonadChoice
instance for members of theMonadRandom
typeclass. - Added functions
lift
andcolift
to wrap and unwrapUniformRandom
, respectively. - Added instance for
MonadChoice
usinguniform
from theMoandRandom
package when the wrapped monad is a member of theMonadRandom
class. - Added various passthrough instances
Functor
Applicative
Monad
MonadRandom
MonadFix
MonadFail
Alternative
MonadPlus
MonadIO
Semigroup
Monoid
MonadError
MonadReader
MonadState
Foldable
Traversable
Eq1
Ord1
MonadZip
MonadCont
Eq
Ord
MonadRWS
MonadWriter
MonadSplit
PrimMonad
MonadInterleave
- Created marker
Removals
MonadChoice
- Removed previous instance for members of the
MonadRandom
type class since it overlapped with all otherMonadChoice
instances. - Removed passthrough instances for constant space
WriterT
andRWST
iftransformers
version 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
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