HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

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) = _|_

  • 2 types
  • 7 values
  • 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.