Hi Bill,

When you configure and then "make install", you are hardwiring the path to
Prelude.hs into Hugs so it should work straight out of the box.
If you want to use additional libraries though, you will need to tell Hugs
where those libraries are.  This is done by invoking Hugs with the
"-P" flag or setting the HUGSFLAGS variable with a string which sets the
-P flag.  For example, I use:

HUGSFLAGS="-E\"emacsclient +%d %s\" -P$HOME/local/htmllibs:"
export HUGSFLAGS

The first part makes emacsclient my editor (see emacs manual for details).
The second part adds Andy Gill's html library to the front of the search 
path.  The trailing : tells Hugs to insert the old value of the path.
If I wanted to add htmllibs to the end of the path, I would write:

  -P:$HOME/local/htmllibs

(There's more details in the Hugs manual.)

Finally, can you use the SOEGraphics library with Hugs on Linux?
Yes, absolutely - it runs great on Windows, Linux and FreeBSD.
(We're currently having some teething problems on Solaris but hope to 
get those ironed out soon.)

You can get a copy of the library from:

  http://haskell.org/graphics/

The current version includes the code from the book in the demos/SOE 
subdirectory.


Hope this helps,

Alastair Reid

Reply via email to