stgi-1.1: Educational implementation of the STG (Spineless Tagless G-machine)

Safe HaskellNone
LanguageHaskell2010

Stg.Prelude.Tuple

Description

Definitions found in Haskell's Data.Tuple.

This module should be imported qualified to avoid clashes with standard Haskell definitions.

Synopsis

Documentation

fst :: Program Source #

First element of a tuple.

fst : (a,b) -> a

snd :: Program Source #

Second element of a tuple.

snd : (a,b) -> a

curry :: Program Source #

Convert an uncurried function to a curried one.

curry : ((a, b) -> c) -> a -> b -> c

uncurry :: Program Source #

Convert a curried function to an uncurried one.

uncurry : (a -> b -> c) -> (a, b) -> c

swap :: Program Source #

Swap the elements of a tuple.

swap : (a,b) -> (b,a)

equals_Pair_Int :: Program Source #

Equality of pairs of boxed integers.