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] [Publish]

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

Versions 0, 0, 0.0.1, 0.0.2, 0.0.3, 0.1, 0.1.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2
Change log ChangeLog.md
Dependencies base (>=4.7 && <4.11), deepseq (>=1.3.0.2 && <1.5), hashable (>=1.2.6.1 && <1.3), nats (>=1 && <1.2) [details]
License BSD-3-Clause
Copyright (c) 2017 Oleg Grenrus
Author Oleg Grenrus <oleg.grenrus@iki.fi>
Maintainer Oleg.Grenrus <oleg.grenrus@iki.fi>
Category Data
Home page https://github.com/phadej/vec
Bug tracker https://github.com/phadej/vec/issues
Source repo head: git clone https://github.com/phadej/vec.git
Uploaded by phadej at 2017-11-19T18:05:13Z

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees