To build FranTk as a ghc package, 
use the following targets from FranTk/src/Makefile:


libHSFranTk.a   -- compiles everything and makes the library

install         -- copies library to $(FRANTK)/
                          interface files to $(FRANTK)/imports
                          source files (for use with hugs) to $(FRANTK)/src

pkg             -- tells ghc about the installed library


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


In the FranTk Makefiles for both unix and windows there is a variable 
SUPPORTCONCURRENCY. This can point to one of two files. If set for concurrency
then other threads can be used in a FranTk program. This will PREVENT
your program working on ghci at the moment. 

(ghci does not export a special variable used by the FranTk event loop. See 
TclCompatibilityGhcSupportsConcurrency.hs if you want to know more
about the gory details)

On UNIX:

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


You may then compile programs (e. g. in FranTk/demos) by just the line

ghc --make -package FranTk -o Demos Demos.lhs 





Windows users:
To get FranTk 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 FranTk
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 libHSFranTk.a was installed in.
5 Modify frantk.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 --make -o test -package FranTk test.hs

