Epic

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 hello.e:

main () -> Unit =
   foreign Unit "putStr" ("Hello world!\n":String)

Then execute epic hello.e -o hello, and you should have an executable hello world program.

2 Responses to “Epic”

  1. Conor says:

    Thanks for getting Epic into a grabbable chunk, Edwin. (Oh, by the way, we just levitated Desc and 2+2 is still 4, compiling just fine with the new encoding. No further jiggering of your code was needed, apart from deleting constructors which no longer need to be there.)

  2. James says:

    Thanks for the .profile tricks. Much as I am amused by “EPIC FAIL” actually getting it to work is an improvement :)

Leave a Reply