random-fu-0.1.3: Random number generation

Data.Random.Internal.Fixed

Synopsis

Documentation

mkFixed :: Integer -> Fixed rSource

The Fixed type doesn't expose its constructors, but I need a way to convert them to and from their raw representation in order to sample them. As long as Fixed is a newtype wrapping Integer, mkFixed and unMkFixed as defined here will work. Both are implemented using unsafeCoerce.