linear-base-0.1.0: Standard library for linear types.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Tuple.Linear

Description

This module provides linear functions commonly used on tuples

Synopsis

Documentation

fst :: Consumable b => (a, b) %1 -> a Source #

snd :: Consumable a => (a, b) %1 -> b Source #

swap :: (a, b) %1 -> (b, a) Source #

curry :: ((a, b) %1 -> c) %1 -> a %1 -> b %1 -> c Source #

Beware, curry is not compatible with the standard one because it is higher-order and we don't have multiplicity polymorphism yet.

uncurry :: (a %1 -> b %1 -> c) %1 -> (a, b) %1 -> c Source #

Beware, uncurry is not compatible with the standard one because it is higher-order and we don't have multiplicity polymorphism yet.