I’ve just uploaded a new version of Epic to hackage, so installing it should now be a matter of typing:
cabal install epic.
You will also need the Boehm garbage collector, available from here. If you’re on a Mac, installing it should require nothing more than:
port install boehmgc
Also, if you’re on a Mac, you will probably have to persuade gcc to look in the right place for the relevant libraries. I have the following lines in my
.profile which do the trick:
export C_INCLUDE_PATH=/opt/local/include:$C_INCLUDE_PATH export CPLUS_INCLUDE_PATH=/opt/local/include:$CPLUS_INCLUDE_PATH export LD_LIBRARY_PATH=/opt/local/lib:$LD_LIBRARY_PATH export LIBRARY_PATH=/opt/local/lib:$LIBRARY_PATH
To check if everything has worked, put the following text into a file called
main () -> Unit = foreign Unit "putStr" ("Hello world!\n":String)
epic hello.e -o hello, and you should have an executable hello world program.