isomorphism-class

Isomorphism typeclass solving the conversion problem

https://github.com/nikita-volkov/isomorphism-class

Version on this page:0.3.0.1
LTS Haskell 23.21:0.3.1.2
Stackage Nightly 2025-05-05:0.3.1.2
Latest on Hackage:0.3.1.2

See all snapshots isomorphism-class appears in

MIT licensed and maintained by Nikita Volkov
This version can be pinned in stack with:isomorphism-class-0.3.0.1@sha256:924d06f220327bd8a64dda04bb3bc25dbe648a1260e43b65f3077a9907f03102,4033

Module documentation for 0.3.0.1

Changes

0.3

  • Extracted the Is and IsSome typeclasses into a separate library “lawful-conversions”
  • Restored the IsomorphicTo typeclass from the 0.1 design without restoring the String instance and the showAs utility

0.2

  • IsomorphicTo renamed to Is
  • IsSome is introduced as a parent class to it
  • to moved to IsSome
  • showAs dropped
  • String isomorphism instances for textual types dropped, since they were not exactly isomorphisms
  • IsSome instances added for String for textual types