To build TclHaskell as a ghc package, 
use the following targets from src/makefile:


libHSTclHaskell.a   -- compiles everything and makes the library

install         -- copies library to $(LIBDIR)/
                          interface files to $(IMPORTS)

pkg             -- tells ghc about the installed library

unpkg           -- removes the installed library from ghc's package list

You may then compile programs (e. g. in demo) by just the line

ghc --make -package TclHaskell -o Demo Demo.hs 


Configuration: look in src/Makefile and src/frantk.conf
and edit your install directory $(PREFIX) and the names of the tcl/tk libs
as appropriate. Modify the library paths in tclhaskell.conf


Windows users:
To get tclhaskell working on windows with ghc:
1 in the src directory copy makefile.nt to makefile
2 Modify the makefile to point to the correct installation directory
  & to set TCLROOT to point to the root of your Tcl-Tk distribution
3 Run make install to install tclhaskell
4 Follow the instructions in ghc-win32-libs.html to produce 
  a libtcl*.a and libtk*.a. Copy these two files to the  directory
  that libHSTclHaskell.a was installed in.
5 Modify tclhaskell.conf.nt so that it points to the correct installation 
  directory for frantk. Also modify the tcl/tk ld options to refer to
  the correct version of tcl-tk. For instance, currently they say
  -ltk83 referring to tk8.3
6 Modify the PKGFILE variable in the makefile to point to
  /path/to/package.conf where path/to/ points to the directory 
  that ghc was installed in.
7 Run make pkg. 

From now on you should be able to compile by simply using
ghc -o test -package TclHaskell test.hs
