sint: A singleton type for `Nat` represented as `Int`.

[ apache, data, library ] [ Propose Tags ]

This package implements a type SInt that links a runtime Int with a type-level Nat, along with some arithmetic and reflection capabilities.

This is useful when mixing type-level Nats with GHC array primitives that expect Ints as sizes and indices.

See the module intro of Data.SInt for more details.


[Index] [Quick Jump]


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS], 0.2.0
Change log
Dependencies base (>=4.12 && <4.17), portray (>=0.1 && <0.3), portray-diff (>=0.1 && <0.2) [details]
License Apache-2.0
Copyright 2021 Google LLC
Author Andrew Pritchard <>
Maintainer Andrew Pritchard <>
Revised Revision 2 made by AndrewPritchard at 2021-11-03T06:42:46Z
Category Data
Home page
Bug tracker
Source repo head: git clone
Uploaded by AndrewPritchard at 2021-09-07T20:04:36Z
Distributions NixOS:0.2.0
Downloads 210 total (5 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-09-07 [all 1 reports]