n-tuple: Homogeneous tuples of arbitrary length.

[ bsd3, library, unclassified ] [ Propose Tags ]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.0, 0.0.1, 0.0.1.1, 0.0.2.0
Dependencies base (>=4.10 && <4.11), singletons (>=2.3 && <2.4), 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:0.0.2.0
Downloads 2507 total (8 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-16 [all 1 reports]

Readme for n-tuple-0.0.2.0

[back to package description]

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