type-iso: Typeclasses for injective relations and isomorphisms between types.

[ apache, cast, data, library, types ] [ Propose Tags ]

This package defines "can be cast to" relations between types: two types a and b are an instance of Injective if there's an injective function from a to b. If there is also an injective function from b to a, a and b are instances of Iso, meaning that one can convert back and forth losslessly (up to some appropriate notion of equality). The main purpose of this little package is to provide easy casting between the common string types (String, strict/lazy Text) and numeric types (Integers, Peano numbers), without having to look up the names of the various conversion functions all the time.


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,
Change log changelog.txt
Dependencies base (>=4.7 && <5), containers (>=, data-default (>=0.5), nats (>=0.2), numericpeano (>=0.2), text (>=1.1), vector (>=0.5), vector-builder (>=0.3.7) [details]
License Apache-2.0
Author Janos Tapolczai
Maintainer janos.tapolczai@gmail.com
Category Data, Cast, Types
Home page https://github.com/ombocomp/type-iso
Source repo head: git clone https://github.com/ombocomp/type-iso.git
Uploaded by jtapolczai2 at 2019-06-25T10:32:06Z
Distributions NixOS:
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 2210 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-06-26 [all 1 reports]