HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulestrict-0.5.1Haskell2010

Data.Strict.Tuple

The strict variant of the standard Haskell pairs and the corresponding variants of the functions from Data.Tuple.

Note that unlike regular Haskell pairs, (x :!: _|_) = (_|_ :!: y) = _|_

Synopsis
  • Packagestrict-0.5.1
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTuple.hs
datadata Pair a b

The type of strict pairs.

Constructors

Instances37Bifoldable, Bifunctor, Bitraversable, Eq2, Ord2, Read2, …
valuefst :: Pair a b -> a

Extract the first component of a strict pair.

valuesnd :: Pair a b -> b

Extract the second component of a strict pair.

valuecurry :: (Pair a b -> c) -> a -> b -> c

Curry a function on strict pairs.

valueuncurry :: (a -> b -> c) -> Pair a b -> c

Convert a curried function to a function on strict pairs.

valuezip :: [a] -> [b] -> [Pair a b]

Zip for strict pairs (defined with zipWith).

valueunzip :: [Pair a b] -> ([a], [b])

Unzip for stict pairs into a (lazy) pair of lists.