The type-iso package

[Tags:apache, library]

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.

Properties

Versions 0.1.0.0
Dependencies base (>=4.7 && <5), data-default (>=0.5), nats (>=0.2), numericpeano (>=0.2), text (>=1.1) [details]
License Apache-2.0
Author Janos Tapolczai
Maintainer janos.tapolczai@gmail.com
Stability Unknown
Category Data, Cast, Types
Home page https://github.com/ombocomp/type-iso
Source repository head: git clone https://github.com/ombocomp/type-iso.git
Uploaded Thu Jan 1 22:07:57 UTC 2015 by jtapolczai
Distributions NixOS:0.1.0.0
Downloads 223 total (5 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-01-01 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees