Safe Haskell | None |
---|---|
Language | Haskell2010 |
General utilities used throughout the Gini codebase.
Synopsis
- newCoreConfig :: MonadIO m => m CoreConfig
- withRandomGen :: HasCoreConfig env => (StdGen -> (a, StdGen)) -> ReaderT env STM a
- randomRSTM :: (Random a, HasCoreConfig env) => (a, a) -> ReaderT env STM a
- module Gini.Core.Types
Documentation
newCoreConfig :: MonadIO m => m CoreConfig #
Create a new CoreConfig
.
withRandomGen :: HasCoreConfig env => (StdGen -> (a, StdGen)) -> ReaderT env STM a #
Run pure computation with a random generator. Not for cryptographically secure use!
randomRSTM :: (Random a, HasCoreConfig env) => (a, a) -> ReaderT env STM a #
Like randomR
, but in STM.
Not for cryptographically secure use!
module Gini.Core.Types