The latest version of ImperativeHaskell is 2.0.0.1-0.
ImperativeHaskell
Version 2.0.0.0 revision 0 uploaded by MatthewMirman.
Package meta
- Synopsis
- A library for writing Imperative style haskell.
- Description
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'
andcontinue'
are used incorrectlyNote: 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
- Author
- Matthew Mirman
- Bug reports
- n/a
- Category
- Control, Embedded, Development, Language
- Copyright
- n/a
- Homepage
- https://github.com/mmirman/ImperativeHaskell
- Maintainer
- Matthew Mirman <mmirman@andrew.cmu.edu>
- Package URL
- n/a
- Stability
- n/a