Code shown in my blog post "Isomorphisms Between Integers and Some Composite Types in Haskell".
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
.travis.yml
LICENSE
README.md
Setup.hs
package.yaml
stack.yaml

README.md

isomorphisms

Build Status

Code shown in my blog post "Isomorphisms Between Integers and Some Composite Types in Haskell".

Setup & Usage

git clone https://github.com/doersino/isomorphisms.git
cd isomorphisms
stack build && stack exec isomorphisms  # see haskellstack.org

Expected output (after the usual build status messages):

+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
+++ OK, passed 100 tests.
*** Failed! Falsifiable (after 2 tests):
1
*** Failed! Falsifiable (after 8 tests and 8 shrinks):
[0,0,0,3]

The last two tests fail for the reasons detailed in the post. You should go read it!