Changelog for probability-0.2.7
Change log for the probability
package
0.2.7
- support
random-1.2
0.2.6
-
instance Monad Distribution.T
: Remove definition offail
. This turns calls tofail
intoerror
s for GHCs prior to the "Monad Fail Proposal". Formerly it was an empty list, but this was bad since the probabilities in an empty list sum up to zero not one, thus breaking the invariant. Beginning with GHC-8.8 and the "Monad Fail Proposal" you can no longer accidentally callfail
, sinceDistribution.T
is not an instance ofMonadFail
. -
instance Monad Probability.EitherT
: DefineMonadFail
instance for GHC>=8.8.1.