The ImperativeHaskell package
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: return'
A Go language style defer' primitive.
Proper compiler errors when break' and 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
Properties
| Versions | 0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1, 1.0.0.0, 1.0.0.1, 1.1.0.0, 1.1.0.1, 1.1.1.0, 2.0.0.0, 2.0.0.1 |
|---|---|
| Dependencies | base (≥4.0 & <5.0), mtl (≥2.0 & <3.0), template-haskell (≥2.6 & <3.0) |
| License | GPL-3 |
| Author | Matthew Mirman |
| Maintainer | Matthew Mirman <mmirman@andrew.cmu.edu> |
| Category | Control, Embedded, Development, Language |
| Home page | https://github.com/mmirman/ImperativeHaskell |
| Source repository | git clone git://github.com/mmirman/ImperativeHaskell.git |
| Upload date | Thu Jun 7 16:21:36 UTC 2012 |
| Uploaded by | MatthewMirman |
| Built on | ghc-7.4 |
Modules
Downloads
- ImperativeHaskell-2.0.0.1.tar.gz (Cabal source package)
- package description (included in the package)