fin: Nat and Fin

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

This package provides two simple types, and some tools to work with them. Also on type level as DataKinds.

data Nat = Z | S Nat
data Fin (n :: Nat) where
Z :: Fin n
S :: Fin n -> Fin ('Nat.S n)

Differences to other packages:

Properties

Versions0, 0, 0.0.1
Change logChangeLog.md
Dependenciesbase (>=4.7 && <4.11), deepseq (>=1.3.0.2 && <1.5), hashable (>=1.2.6.1 && <1.3), nats (>=1 && <1.2) [details]
LicenseBSD-3-Clause
Copyright(c) 2017 Oleg Grenrus
AuthorOleg Grenrus <oleg.grenrus@iki.fi>
MaintainerOleg.Grenrus <oleg.grenrus@iki.fi>
CategoryData
Home pagehttps://github.com/phadej/vec
Bug trackerhttps://github.com/phadej/vec/issues
Source repositoryhead: git clone https://github.com/phadej/vec.git
UploadedSun Nov 19 18:05:13 UTC 2017 by phadej

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees