fake-0.1.1: Randomly generated fake data

Safe HaskellNone
LanguageHaskell2010

Fake

Synopsis

Documentation

module Fake.Class

module Fake.Cover

newtype FGen a Source #

Constructors

MkFGen 

Fields

Instances

Monad FGen Source # 

Methods

(>>=) :: FGen a -> (a -> FGen b) -> FGen b #

(>>) :: FGen a -> FGen b -> FGen b #

return :: a -> FGen a #

fail :: String -> FGen a #

Functor FGen Source # 

Methods

fmap :: (a -> b) -> FGen a -> FGen b #

(<$) :: a -> FGen b -> FGen a #

Applicative FGen Source # 

Methods

pure :: a -> FGen a #

(<*>) :: FGen (a -> b) -> FGen a -> FGen b #

liftA2 :: (a -> b -> c) -> FGen a -> FGen b -> FGen c #

(*>) :: FGen a -> FGen b -> FGen b #

(<*) :: FGen a -> FGen b -> FGen a #

generate :: FGen a -> IO a Source #

Run a generator to generate a random value in the IO monad.

module Fake.Utils