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 0.0.0, 0.0.1, 0.0.1.1, 0.0.2.0
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 Fri Mar 16 00:57:40 UTC 2018
Distributions NixOS:0.0.2.0
Downloads 760 total (18 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-03-16 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


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