BSD-3-Clause licensed by Athan Clark
Maintained by [email protected]
This version can be pinned in stack with:n-tuple-0.0.2.0@sha256:2450891bbb59819ea14889fb863ee8fea52ee1056ce73d458b6a1ce2005ef0b9,1070

Module documentation for 0.0.2.0

n-tuple

{-# LANGUAGE DataKinds -#}

import Data.NTuple


foo :: NTuple 3 String
foo
  = incl _3 "three"
  . incl _2 "two"
  . incl _1 "one"
  $ empty


one :: String
one = proj _1 foo

two :: String
two = proj _2 foo