The n-tuple package

[ Tags: bsd3, data, library ] [ Propose Tags ]

[Skip to Readme]

Properties

Versions 0.0.0, 0.0.1, 0.0.1.1
Dependencies base (>=4.7 && <5), singletons, vector [details]
License BSD3
Copyright 2017 Athan Clark
Author Athan Clark
Maintainer athan.clark@gmail.com
Category Data
Home page https://github.com/athanclark/n-tuple#readme
Source repository head: git clone https://github.com/athanclark/n-tuple
Uploaded Wed Jun 7 14:41:48 UTC 2017 by athanclark
Distributions LTSHaskell:0.0.1.1, NixOS:0.0.1.1, Stackage:0.0.1.1, Tumbleweed:0.0.1.1
Downloads 507 total (242 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for n-tuple-0.0.1.1

[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