A library for writing Imperative style haskell. https://github.com/mmirman/ImperativeHaskell
|Latest on Hackage:||126.96.36.199|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
A monad that uses GADTs and continuations to replicate what it is like to program in an imperative language like C, Java or Go with "return", "for", "break", "continue", and mutable references.
In Version 2:
Single return function:
A Go language style
Proper compiler errors when
continue'are used incorrectly
Note: Version 2 has a very different internal structure from version 1, and thus there will likely be type signature conflicts.
For more information see:
Examples on github http://github.com/mmirman/ImperativeHaskell/blob/master/Main.hs
The relevant blog post http://kormacode.blogspot.com/2011/11/c-style-haskell_10.html