| Copyright | (c) 2017 Daniel Mendler 2006-2007 Roman Leshchinskiy |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Daniel Mendler <mail@daniel-mendler.de> |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Strict.Tuple
Contents
Description
Strict pairs.
Same as regular Haskell pairs, but (x :!: _|_) = (_|_ :!: y) = _|_
Documentation
The type of strict pairs.
Constructors
| !a :!: !b infixl 2 |
Instances
| Bifunctor Pair Source # | |
| Functor (Pair a) Source # | |
| Foldable (Pair a) Source # | |
| Traversable (Pair a) Source # | |
| Generic1 (Pair a) Source # | |
| (Bounded b, Bounded a) => Bounded (Pair a b) Source # | |
| (Eq b, Eq a) => Eq (Pair a b) Source # | |
| (Data b, Data a) => Data (Pair a b) Source # | |
| (Ord b, Ord a) => Ord (Pair a b) Source # | |
| (Read b, Read a) => Read (Pair a b) Source # | |
| (Show b, Show a) => Show (Pair a b) Source # | |
| (Ix b, Ix a) => Ix (Pair a b) Source # | |
| Generic (Pair a b) Source # | |
| (Semigroup a, Semigroup b) => Semigroup (Pair a b) Source # | |
| (Monoid a, Monoid b) => Monoid (Pair a b) Source # | |
| type Rep1 (Pair a) Source # | |
| type Rep (Pair a b) Source # | |
uncurry :: (a -> b -> c) -> Pair a b -> c Source #
Convert a curried function to a function on strict pairs.