Haskell subset compiled to the Beam machine.
Haskell Erlang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore added gitignore, allowed newline as well as ; as line ender, and some… Aug 23, 2014
Bkeep.hs code cleaning and gitignore Aug 23, 2014
Ebif.hs code cleaning and gitignore Aug 23, 2014
Ecore.hs
Epretty.hs
Lexer.hs fixed the case of ] and ) and newline Aug 23, 2014
Main.hs Added readme + some code cleaning Aug 21, 2014
Makefile
Parser.hs
README.md intro Aug 29, 2014
add.tnt Initial commit. Jun 24, 2010
case_x.erl added gitignore, allowed newline as well as ; as line ender, and some… Aug 23, 2014
etnt
fatbar.hs Initial commit. Jun 24, 2010
fatbar.tnt Initial commit. Jun 24, 2010
gt.tnt Added readme + some code cleaning Aug 21, 2014
gt2.tnt added gitignore, allowed newline as well as ; as line ender, and some… Aug 23, 2014
guard.tnt Initial commit. Jun 24, 2010
ismember.tnt Initial commit. Jun 24, 2010
isnull.tnt
lam.tnt Initial commit. Jun 24, 2010
prelude.tnt Initial commit. Jun 24, 2010
prelude2.tnt fixed the case of ] and ) and newline Aug 23, 2014
safehead.tnt Initial commit. Jun 24, 2010
single.tnt
sum.erl Initial commit. Jun 24, 2010
sum.tnt added gitignore, allowed newline as well as ; as line ender, and some… Aug 23, 2014
sum1.tnt
test.tnt Initial commit. Jun 24, 2010
zip.erl added gitignore, allowed newline as well as ; as line ender, and some… Aug 23, 2014
zip.tnt Initial commit. Jun 24, 2010

README.md

This project allows compiling a subset of haskell to the erlang WM (beam).

Prerequisites:


Build the Etnt compiler (Etnt):
make all

Compile beam code from haskell/tnt code:


./etnt gt.tnt

If everything went well (i.e. no bugs in your tnt code), you have an output beam file: gt.beam

Open up the erlang shell (erl), and type gt:gt(300,29). The result should be:

Eshell V5.10.4 (abort with ^G)
1> gt:gt(300,29).
true