n-tuple: Homogeneous tuples of arbitrary length.

[ bsd3, library, unclassified ] [ Propose Tags ]

Please see the README on Github at https://github.com/athanclark/sparrow-server#readme

[Skip to Readme]
Versions [faq] 0.0.0, 0.0.1,,
Dependencies base (==4.10.*), singletons (==2.3.*), vector [details]
License BSD-3-Clause
Copyright BSD-3
Author Athan Clark
Maintainer athan.clark@gmail.com
Home page https://github.com/athanclark/n-tuple#readme
Bug tracker https://github.com/athanclark/n-tuple/issues
Source repo head: git clone https://github.com/athanclark/n-tuple
Uploaded by athanclark at 2018-03-16T00:57:40Z
Distributions NixOS:
Downloads 2189 total (64 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-03-16 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for n-tuple-

[back to package description]


{-# LANGUAGE DataKinds -#}

import Data.NTuple

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

one :: String
one = proj _1 foo

two :: String
two = proj _2 foo