Data.Tuple.Types

tuples-0.1.0.0: Small monomorphic tuples

Safe Haskell | None
Language | Haskell2010

Data.Tuple.Types

Contents

- Pairs
- Triples

Synopsis

- data DoublePair = DoublePair !Double !Double
- data IntPair = IntPair !Int !Int
- data WordPair = WordPair !Word !Word
- data ByteArrayPair = ByteArrayPair !ByteArray !ByteArray
- data DoubleTriple = DoubleTriple !Double !Double !Double
- data IntTriple = IntTriple !Int !Int !Int
- data WordTriple = WordTriple !Word !Word !Word
- data ByteArrayTriple = ByteArrayTriple !ByteArray !ByteArray !ByteArray

# Pairs

data DoublePair #

Constructors

DoublePair !Double !Double |

#### Instances

Instances details

Show DoublePair # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> DoublePair -> ShowS # show :: DoublePair -> String # showList :: [DoublePair] -> ShowS #
Eq DoublePair # |
Instance details Defined in Data.Tuple.Types Methods (==) :: DoublePair -> DoublePair -> Bool # (/=) :: DoublePair -> DoublePair -> Bool #
Ord DoublePair # |
Instance details Defined in Data.Tuple.Types Methods compare :: DoublePair -> DoublePair -> Ordering # (<) :: DoublePair -> DoublePair -> Bool # (<=) :: DoublePair -> DoublePair -> Bool # (>) :: DoublePair -> DoublePair -> Bool # (>=) :: DoublePair -> DoublePair -> Bool # max :: DoublePair -> DoublePair -> DoublePair # min :: DoublePair -> DoublePair -> DoublePair #
Prim DoublePair # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy DoublePair -> Int# # sizeOf# :: DoublePair -> Int# # alignmentOfType# :: Proxy DoublePair -> Int# # alignment# :: DoublePair -> Int# # indexByteArray# :: ByteArray# -> Int# -> DoublePair # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, DoublePair #) # writeByteArray# :: MutableByteArray# s -> Int# -> DoublePair -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> DoublePair -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> DoublePair # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, DoublePair #) # writeOffAddr# :: Addr# -> Int# -> DoublePair -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> DoublePair -> State# s -> State# s #

data IntPair #

Constructors

IntPair !Int !Int |

#### Instances

Instances details

Show IntPair # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> IntPair -> ShowS # show :: IntPair -> String # showList :: [IntPair] -> ShowS #
Eq IntPair # |
Instance details Defined in Data.Tuple.Types Methods (==) :: IntPair -> IntPair -> Bool # (/=) :: IntPair -> IntPair -> Bool #
Ord IntPair # |
Instance details Defined in Data.Tuple.Types Methods compare :: IntPair -> IntPair -> Ordering # (<) :: IntPair -> IntPair -> Bool # (<=) :: IntPair -> IntPair -> Bool # (>) :: IntPair -> IntPair -> Bool # (>=) :: IntPair -> IntPair -> Bool # max :: IntPair -> IntPair -> IntPair # min :: IntPair -> IntPair -> IntPair #
Prim IntPair # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy IntPair -> Int# # sizeOf# :: IntPair -> Int# # alignmentOfType# :: Proxy IntPair -> Int# # alignment# :: IntPair -> Int# # indexByteArray# :: ByteArray# -> Int# -> IntPair # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, IntPair #) # writeByteArray# :: MutableByteArray# s -> Int# -> IntPair -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> IntPair -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> IntPair # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, IntPair #) # writeOffAddr# :: Addr# -> Int# -> IntPair -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> IntPair -> State# s -> State# s #

data WordPair #

Constructors

WordPair !Word !Word |

#### Instances

Instances details

Show WordPair # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> WordPair -> ShowS # show :: WordPair -> String # showList :: [WordPair] -> ShowS #
Eq WordPair # |
Instance details Defined in Data.Tuple.Types Methods (==) :: WordPair -> WordPair -> Bool # (/=) :: WordPair -> WordPair -> Bool #
Ord WordPair # |
Instance details Defined in Data.Tuple.Types Methods compare :: WordPair -> WordPair -> Ordering # (<) :: WordPair -> WordPair -> Bool # (<=) :: WordPair -> WordPair -> Bool # (>) :: WordPair -> WordPair -> Bool # (>=) :: WordPair -> WordPair -> Bool # max :: WordPair -> WordPair -> WordPair # min :: WordPair -> WordPair -> WordPair #
Prim WordPair # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy WordPair -> Int# # sizeOf# :: WordPair -> Int# # alignmentOfType# :: Proxy WordPair -> Int# # alignment# :: WordPair -> Int# # indexByteArray# :: ByteArray# -> Int# -> WordPair # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, WordPair #) # writeByteArray# :: MutableByteArray# s -> Int# -> WordPair -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> WordPair -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> WordPair # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, WordPair #) # writeOffAddr# :: Addr# -> Int# -> WordPair -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> WordPair -> State# s -> State# s #

data ByteArrayPair #

Constructors

ByteArrayPair !ByteArray !ByteArray |

#### Instances

Instances details

Show ByteArrayPair # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> ByteArrayPair -> ShowS # show :: ByteArrayPair -> String # showList :: [ByteArrayPair] -> ShowS #
Eq ByteArrayPair # |
Instance details Defined in Data.Tuple.Types Methods (==) :: ByteArrayPair -> ByteArrayPair -> Bool # (/=) :: ByteArrayPair -> ByteArrayPair -> Bool #
Ord ByteArrayPair # |
Instance details Defined in Data.Tuple.Types Methods compare :: ByteArrayPair -> ByteArrayPair -> Ordering # (<) :: ByteArrayPair -> ByteArrayPair -> Bool # (<=) :: ByteArrayPair -> ByteArrayPair -> Bool # (>) :: ByteArrayPair -> ByteArrayPair -> Bool # (>=) :: ByteArrayPair -> ByteArrayPair -> Bool # max :: ByteArrayPair -> ByteArrayPair -> ByteArrayPair # min :: ByteArrayPair -> ByteArrayPair -> ByteArrayPair #

# Triples

data DoubleTriple #

Constructors

DoubleTriple !Double !Double !Double |

#### Instances

Instances details

Show DoubleTriple # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> DoubleTriple -> ShowS # show :: DoubleTriple -> String # showList :: [DoubleTriple] -> ShowS #
Eq DoubleTriple # |
Instance details Defined in Data.Tuple.Types Methods (==) :: DoubleTriple -> DoubleTriple -> Bool # (/=) :: DoubleTriple -> DoubleTriple -> Bool #
Ord DoubleTriple # |
Instance details Defined in Data.Tuple.Types Methods compare :: DoubleTriple -> DoubleTriple -> Ordering # (<) :: DoubleTriple -> DoubleTriple -> Bool # (<=) :: DoubleTriple -> DoubleTriple -> Bool # (>) :: DoubleTriple -> DoubleTriple -> Bool # (>=) :: DoubleTriple -> DoubleTriple -> Bool # max :: DoubleTriple -> DoubleTriple -> DoubleTriple # min :: DoubleTriple -> DoubleTriple -> DoubleTriple #
Prim DoubleTriple # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy DoubleTriple -> Int# # sizeOf# :: DoubleTriple -> Int# # alignmentOfType# :: Proxy DoubleTriple -> Int# # alignment# :: DoubleTriple -> Int# # indexByteArray# :: ByteArray# -> Int# -> DoubleTriple # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, DoubleTriple #) # writeByteArray# :: MutableByteArray# s -> Int# -> DoubleTriple -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> DoubleTriple -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> DoubleTriple # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, DoubleTriple #) # writeOffAddr# :: Addr# -> Int# -> DoubleTriple -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> DoubleTriple -> State# s -> State# s #

data IntTriple #

Constructors

IntTriple !Int !Int !Int |

#### Instances

Instances details

Show IntTriple # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> IntTriple -> ShowS # show :: IntTriple -> String # showList :: [IntTriple] -> ShowS #
Eq IntTriple # |
Instance details Defined in Data.Tuple.Types Methods (==) :: IntTriple -> IntTriple -> Bool # (/=) :: IntTriple -> IntTriple -> Bool #
Ord IntTriple # |
Instance details Defined in Data.Tuple.Types Methods compare :: IntTriple -> IntTriple -> Ordering # (<) :: IntTriple -> IntTriple -> Bool # (<=) :: IntTriple -> IntTriple -> Bool # (>) :: IntTriple -> IntTriple -> Bool # (>=) :: IntTriple -> IntTriple -> Bool # max :: IntTriple -> IntTriple -> IntTriple # min :: IntTriple -> IntTriple -> IntTriple #
Prim IntTriple # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy IntTriple -> Int# # sizeOf# :: IntTriple -> Int# # alignmentOfType# :: Proxy IntTriple -> Int# # alignment# :: IntTriple -> Int# # indexByteArray# :: ByteArray# -> Int# -> IntTriple # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, IntTriple #) # writeByteArray# :: MutableByteArray# s -> Int# -> IntTriple -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> IntTriple -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> IntTriple # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, IntTriple #) # writeOffAddr# :: Addr# -> Int# -> IntTriple -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> IntTriple -> State# s -> State# s #

data WordTriple #

Constructors

WordTriple !Word !Word !Word |

#### Instances

Instances details

Show WordTriple # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> WordTriple -> ShowS # show :: WordTriple -> String # showList :: [WordTriple] -> ShowS #
Eq WordTriple # |
Instance details Defined in Data.Tuple.Types Methods (==) :: WordTriple -> WordTriple -> Bool # (/=) :: WordTriple -> WordTriple -> Bool #
Ord WordTriple # |
Instance details Defined in Data.Tuple.Types Methods compare :: WordTriple -> WordTriple -> Ordering # (<) :: WordTriple -> WordTriple -> Bool # (<=) :: WordTriple -> WordTriple -> Bool # (>) :: WordTriple -> WordTriple -> Bool # (>=) :: WordTriple -> WordTriple -> Bool # max :: WordTriple -> WordTriple -> WordTriple # min :: WordTriple -> WordTriple -> WordTriple #
Prim WordTriple # |
Instance details Defined in Data.Tuple.Types Methods sizeOfType# :: Proxy WordTriple -> Int# # sizeOf# :: WordTriple -> Int# # alignmentOfType# :: Proxy WordTriple -> Int# # alignment# :: WordTriple -> Int# # indexByteArray# :: ByteArray# -> Int# -> WordTriple # readByteArray# :: MutableByteArray# s -> Int# -> State# s -> (# State# s, WordTriple #) # writeByteArray# :: MutableByteArray# s -> Int# -> WordTriple -> State# s -> State# s # setByteArray# :: MutableByteArray# s -> Int# -> Int# -> WordTriple -> State# s -> State# s # indexOffAddr# :: Addr# -> Int# -> WordTriple # readOffAddr# :: Addr# -> Int# -> State# s -> (# State# s, WordTriple #) # writeOffAddr# :: Addr# -> Int# -> WordTriple -> State# s -> State# s # setOffAddr# :: Addr# -> Int# -> Int# -> WordTriple -> State# s -> State# s #

data ByteArrayTriple #

Constructors

ByteArrayTriple !ByteArray !ByteArray !ByteArray |

#### Instances

Instances details

Show ByteArrayTriple # |
Instance details Defined in Data.Tuple.Types Methods showsPrec :: Int -> ByteArrayTriple -> ShowS # show :: ByteArrayTriple -> String # showList :: [ByteArrayTriple] -> ShowS #
Eq ByteArrayTriple # |
Instance details Defined in Data.Tuple.Types Methods (==) :: ByteArrayTriple -> ByteArrayTriple -> Bool # (/=) :: ByteArrayTriple -> ByteArrayTriple -> Bool #
Ord ByteArrayTriple # |
Instance details Defined in Data.Tuple.Types Methods compare :: ByteArrayTriple -> ByteArrayTriple -> Ordering # (<) :: ByteArrayTriple -> ByteArrayTriple -> Bool # (<=) :: ByteArrayTriple -> ByteArrayTriple -> Bool # (>) :: ByteArrayTriple -> ByteArrayTriple -> Bool # (>=) :: ByteArrayTriple -> ByteArrayTriple -> Bool # max :: ByteArrayTriple -> ByteArrayTriple -> ByteArrayTriple # min :: ByteArrayTriple -> ByteArrayTriple -> ByteArrayTriple #