hw-prim-0.5.0.3: Primitive functions and data types

Safe HaskellNone
LanguageHaskell2010

HaskellWorks.Data.Generate

Synopsis

Documentation

class Container a Source #

Associated Types

type Elem a Source #

Instances

Container ByteString Source # 

Associated Types

type Elem ByteString :: * Source #

Container [a] Source # 

Associated Types

type Elem [a] :: * Source #

Container (Vector Int) Source # 

Associated Types

type Elem (Vector Int) :: * Source #

Container (Vector Int8) Source # 

Associated Types

type Elem (Vector Int8) :: * Source #

Container (Vector Int16) Source # 

Associated Types

type Elem (Vector Int16) :: * Source #

Container (Vector Int32) Source # 

Associated Types

type Elem (Vector Int32) :: * Source #

Container (Vector Int64) Source # 

Associated Types

type Elem (Vector Int64) :: * Source #

Container (Vector Word8) Source # 

Associated Types

type Elem (Vector Word8) :: * Source #

Container (Vector Word16) Source # 

Associated Types

type Elem (Vector Word16) :: * Source #

Container (Vector Word32) Source # 

Associated Types

type Elem (Vector Word32) :: * Source #

Container (Vector Word64) Source # 

Associated Types

type Elem (Vector Word64) :: * Source #

Container (Vector Int8) Source # 

Associated Types

type Elem (Vector Int8) :: * Source #

Container (Vector Int16) Source # 

Associated Types

type Elem (Vector Int16) :: * Source #

Container (Vector Int32) Source # 

Associated Types

type Elem (Vector Int32) :: * Source #

Container (Vector Int64) Source # 

Associated Types

type Elem (Vector Int64) :: * Source #

Container (Vector Word8) Source # 

Associated Types

type Elem (Vector Word8) :: * Source #

Container (Vector Word16) Source # 

Associated Types

type Elem (Vector Word16) :: * Source #

Container (Vector Word32) Source # 

Associated Types

type Elem (Vector Word32) :: * Source #

Container (Vector Word64) Source # 

Associated Types

type Elem (Vector Word64) :: * Source #

class Container v => Generate v where Source #

Class of values that support vector like operations

Minimal complete definition

generate

Methods

generate :: Int -> (Int -> Elem v) -> v Source #

Instances

Generate String Source # 

Methods

generate :: Int -> (Int -> Elem String) -> String Source #

Generate ByteString Source # 
Generate (Vector Int) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int)) -> Vector Int Source #

Generate (Vector Int8) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int8)) -> Vector Int8 Source #

Generate (Vector Int16) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int16)) -> Vector Int16 Source #

Generate (Vector Int32) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int32)) -> Vector Int32 Source #

Generate (Vector Int64) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int64)) -> Vector Int64 Source #

Generate (Vector Word8) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Word8)) -> Vector Word8 Source #

Generate (Vector Word16) Source # 
Generate (Vector Word32) Source # 
Generate (Vector Word64) Source # 
Generate (Vector Int8) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int8)) -> Vector Int8 Source #

Generate (Vector Int16) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int16)) -> Vector Int16 Source #

Generate (Vector Int32) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int32)) -> Vector Int32 Source #

Generate (Vector Int64) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Int64)) -> Vector Int64 Source #

Generate (Vector Word8) Source # 

Methods

generate :: Int -> (Int -> Elem (Vector Word8)) -> Vector Word8 Source #

Generate (Vector Word16) Source # 
Generate (Vector Word32) Source # 
Generate (Vector Word64) Source #