Skip to content

doersino/isomorphisms

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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!

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published