[Hat] Adding modules to the hat libraries

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Mon Jan 16 11:00:43 EST 2006


Thomas Davie <tatd2 at kent.ac.uk> writes:

> I'm trying to get QuickCheck added to the available hat modules...
> 
> So... I've added the source file at src/hatlibs/Test/QuickCheck.hs,  
> I've modified src/hatlibs/Makefile to tell it to build the file, I've  
> modified configure to make it install the .hx file... I've edited the  
> src/hatlibs/hat.pkgconf and src/hatlibs/hat.cabal files to make ghc's  
> package system make sense, I can't for the life of me figure out what  
> to edit to tell it to install the .hi file!

If you are not using Cabal to build and install the hat libraries, then
the shell script at script/confhat does the actual copying of stuff to
its final installed location.  All you should need to do is add the new
directories, e.g. "Test" to the DIRS variable near the top.

Regards,
    Malcolm


More information about the Hat mailing list