sint: Nat singletons represented by Int

[ apache, data, library ] [ Propose Tags ] [ Report a vulnerability ]

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.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Downloads

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

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.2.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <4.19), portray (>=0.1 && <0.4), portray-diff (>=0.1 && <0.2) [details]
License Apache-2.0
Copyright 2021 Google LLC
Author Andrew Pritchard <awpritchard@gmail.com>
Maintainer Andrew Pritchard <awpritchard@gmail.com>
Revised Revision 5 made by AndrewPritchard at 2023-03-13T01:01:14Z
Category Data
Home page https://github.com/awpr/fin-vec#readme
Bug tracker https://github.com/awpr/fin-vec/issues
Source repo head: git clone https://github.com/awpr/fin-vec(sint)
Uploaded by AndrewPritchard at 2021-10-24T19:43:04Z
Distributions
Reverse Dependencies 6 direct, 0 indirect [details]
Downloads 418 total (14 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-10-24 [all 1 reports]

Readme for sint-0.2.0

[back to package description]

sint

A singleton type for Nat represented as Int.

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.