mwc-probability (hackage): A simple probability distribution type, where distributions are characterized by sampling functions.  This implementation is a thin layer over mwc-random, which handles RNG state-passing automatically by using a PrimMonad like IO or ST s under the hood.  Examples  Transform a distribution's support while leaving its density structure invariant:  Sequence distributions together using bind:  Use do-notation to build complex joint distributions from composable, local conditionals:
Keywords: library|math|mit