HaskellWorks.Data.Generate

hw-prim-0.6.3.2: Primitive functions and data types

Safe Haskell | None
Language | Haskell2010

HaskellWorks.Data.Generate

Synopsis

- class Container a where
  - type Elem a
- class Container v => Generate v where
  - generate :: Int -> (Int -> Elem v) -> v

# Documentation

class Container a #

Associated Types

type Elem a #

#### Instances

Instances details

Container ByteString # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem ByteString |
Instance details Defined in HaskellWorks.Data.Container type Elem ByteString = Word8
Container (Vector Int16) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int16) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int16) = Int16
Container (Vector Int32) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int32) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int32) = Int32
Container (Vector Int64) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int64) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int64) = Int64
Container (Vector Int8) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int8) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int8) = Int8
Container (Vector Word16) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word16) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word16) = Word16
Container (Vector Word32) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word32) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word32) = Word32
Container (Vector Word64) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word64) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word64) = Word64
Container (Vector Word8) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word8) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word8) = Word8
Container (Vector Int16) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int16) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int16) = Int16
Container (Vector Int32) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int32) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int32) = Int32
Container (Vector Int64) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int64) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int64) = Int64
Container (Vector Int8) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int8) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int8) = Int8
Container (Vector Word16) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word16) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word16) = Word16
Container (Vector Word32) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word32) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word32) = Word32
Container (Vector Word64) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word64) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word64) = Word64
Container (Vector Word8) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Word8) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Word8) = Word8
Container (Vector Int) # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem (Vector Int) |
Instance details Defined in HaskellWorks.Data.Container type Elem (Vector Int) = Int
Container [a] # |
Instance details Defined in HaskellWorks.Data.Container Associated Types
type Elem [a] |
Instance details Defined in HaskellWorks.Data.Container type Elem [a] = a

class Container v => Generate v where #

Class of values that support vector like operations

Methods

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

#### Instances

Instances details

Generate ByteString # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem ByteString) -> ByteString #
Generate String # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem String) -> String #
Generate (Vector Int16) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int16)) -> Vector Int16 #
Generate (Vector Int32) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int32)) -> Vector Int32 #
Generate (Vector Int64) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int64)) -> Vector Int64 #
Generate (Vector Int8) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int8)) -> Vector Int8 #
Generate (Vector Word16) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word16)) -> Vector Word16 #
Generate (Vector Word32) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word32)) -> Vector Word32 #
Generate (Vector Word64) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word64)) -> Vector Word64 #
Generate (Vector Word8) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word8)) -> Vector Word8 #
Generate (Vector Int16) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int16)) -> Vector Int16 #
Generate (Vector Int32) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int32)) -> Vector Int32 #
Generate (Vector Int64) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int64)) -> Vector Int64 #
Generate (Vector Int8) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int8)) -> Vector Int8 #
Generate (Vector Word16) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word16)) -> Vector Word16 #
Generate (Vector Word32) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word32)) -> Vector Word32 #
Generate (Vector Word64) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word64)) -> Vector Word64 #
Generate (Vector Word8) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Word8)) -> Vector Word8 #
Generate (Vector Int) # |
Instance details Defined in HaskellWorks.Data.Generate Methods generate :: Int -> (Int -> Elem (Vector Int)) -> Vector Int #