GHC.Utils.Containers.Internal.StrictPair

ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Utils.Containers.Internal.StrictPair

Description

A strict pair

Synopsis

- data StrictPair a b = !a :*: !b
- toPair :: StrictPair a b -> (a, b)

# Documentation

data StrictPair a b #

The same as a regular Haskell pair, but

    (x :*: _|_) = (_|_ :*: y) = _|_

Constructors

!a :*: !b infixr 1 |

toPair :: StrictPair a b -> (a, b) #

Convert a strict pair to a standard pair.