Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type RandomEv = StoreRandomGen :- (LoadRandomGen :- 'Nil)
- class RandomState s where
- getRandomGen :: s -> StdGen
- putRandomGen :: s -> StdGen -> s
- handleRandom :: (RandomState s, Monad m) => HandleSt' s m RandomEv
Type
type RandomEv = StoreRandomGen :- (LoadRandomGen :- 'Nil) Source #
class RandomState s where Source #
getRandomGen :: s -> StdGen Source #
putRandomGen :: s -> StdGen -> s Source #
Instances
RandomState FollowboxState Source # | |
Defined in Control.Moffy.Samples.Followbox.Handle getRandomGen :: FollowboxState -> StdGen Source # putRandomGen :: FollowboxState -> StdGen -> FollowboxState Source # | |
RandomState StdGen Source # | |
Defined in Control.Moffy.Samples.Handle.Random |
Handle
handleRandom :: (RandomState s, Monad m) => HandleSt' s m RandomEv Source #