Copyright | (c) gspia 2020- |
---|---|
License | BSD |
Maintainer | gspia |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Fcf.Data.Tuple
Documentation
>>>
import qualified GHC.TypeLits as TL
data Swap :: (a, b) -> Exp (b, a) Source #
Swap
Example
>>>
:kind! Eval (Swap '(1, 2))
Eval (Swap '(1, 2)) :: (TL.Natural, TL.Natural) = '(2, 1)
data Tuple2 :: a -> b -> Exp (a, b) Source #
2-tuple to allow for partial application of 2-tuple at the type level
data Tuple3 :: a -> b -> c -> Exp (a, b, c) Source #
3-tuple to allow for partial application of 3-tuple at the type level
data Tuple4 :: a -> b -> c -> d -> Exp (a, b, c, d) Source #
4-tuple to allow for partial application of 4-tuple at the type level