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

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.


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.


Change logNone available
Dependenciesbase (>=4.7 && <5), data-default (>=0.5), nats (>=0.2), numericpeano (>=0.2), text (>=1.1) [details]
AuthorJanos Tapolczai
CategoryData, Cast, Types
Home pagehttps://github.com/ombocomp/type-iso
Source repositoryhead: git clone https://github.com/ombocomp/type-iso.git
UploadedThu Jan 1 22:07:11 UTC 2015 by jtapolczai




Maintainers' corner

For package maintainers and hackage trustees