n-tuple

Homogeneous tuples of arbitrary length. https://github.com/athanclark/n-tuple#readme

Latest on Hackage:0.0.2.0

See all snapshots n-tuple appears in

BSD-3-Clause licensed by Athan Clark
Maintained by [email protected]

Module documentation for 0.0.2.0

This version can be pinned in stack with:[email protected]:2450891bbb59819ea14889fb863ee8fea52ee1056ce73d458b6a1ce2005ef0b9,1070

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