data-nat: data Nat = Zero | Succ Nat

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

The usual data Nat = Zero | Succ Nat datatype with the appropriate instances.

Should be portable to any Haskell 98 compiler which supports the CPP extension.

Versions [RSS] [faq] 0.1, 0.1.1, 0.1.2
Dependencies base (>=3 && <5), ghc-prim (==0.2.*), semigroups (>=0.7 && <0.9) [details]
License BSD-3-Clause
Copyright Copyright (C) 2012 Gábor Lehel
Author Gábor Lehel
Maintainer Gábor Lehel <>
Category Data, Math
Home page
Source repo head: git clone git://
Uploaded by GaborLehel at 2012-09-23T11:23:03Z
Distributions NixOS:0.1.2
Downloads 2479 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees