Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Modelling.Auxiliary.Shuffle.All
Description
Provides an interface to shuffle a taskInstance
by providing a ShuffleInstance
datatype.
This module provides all means of shuffling.
Synopsis
- data ShuffleInstance a = ShuffleInstance {
- taskInstance :: !a
- allowLayoutMangling :: !Bool
- shuffleNames :: !Bool
- shuffleOptions :: !Bool
- shuffleEverything :: (MonadRandom m, MonadThrow m, Randomise a, RandomiseLayout a, RandomiseNames a) => a -> m a
- shuffleInstance :: (MonadRandom m, MonadThrow m, Randomise a, RandomiseLayout a, RandomiseNames a) => ShuffleInstance a -> m a
- shuffleInstanceWith :: (RandomGen g, Randomise a, RandomiseLayout a, RandomiseNames a) => ShuffleInstance a -> g -> Either SomeException a
Documentation
data ShuffleInstance a Source #
A datatype that allows setting all available shuffling methods
Constructors
ShuffleInstance | |
Fields
|
Instances
shuffleEverything :: (MonadRandom m, MonadThrow m, Randomise a, RandomiseLayout a, RandomiseNames a) => a -> m a Source #
Set all shuffling methods of ShuffleInstance
to enabled.
shuffleInstance :: (MonadRandom m, MonadThrow m, Randomise a, RandomiseLayout a, RandomiseNames a) => ShuffleInstance a -> m a Source #
Shuffle a taskInstance
based on enabled shuffling methods.
shuffleInstanceWith :: (RandomGen g, Randomise a, RandomiseLayout a, RandomiseNames a) => ShuffleInstance a -> g -> Either SomeException a Source #
Shuffle a taskInstance
using shuffleInstance
and catch exceptions.