Safe Haskell | Safe |
---|---|
Language | Haskell98 |
This module provides a container type for sources of
randomness. This makes it possible for a source of randomness (any
instance of the RandomGen
class) to be stored in a data structure
without having to specify its type explicitly.
Synopsis
- data RandomSource where
- RandomSource :: forall g. RandomGen g => g -> RandomSource
Documentation
data RandomSource where Source #
A container type to hold a source of randomness. This can hold
any instance of the RandomGen
class.
RandomSource :: forall g. RandomGen g => g -> RandomSource |
Instances
Show RandomSource Source # | |
Defined in Quipper.Utils.RandomSource showsPrec :: Int -> RandomSource -> ShowS # show :: RandomSource -> String # showList :: [RandomSource] -> ShowS # |