ANNOUNCE: HSX11 1.00

Alastair Reid alastair@reid-consulting-uk.ltd.uk
Fri, 6 Jun 2003 23:52:17 +0100


> When I run "make all" I get:
> [...]
> ghc-6.0: unknown package name: Main

I believe what is going wrong is that you have some old .hi files from 
greencard 3.00 lying around.  These were slightly broken in that they didn't 
use the -package-name flag reliably and so ghc plugged in the default package 
name of 'Main'.

What I've found to work in the past is to delete everything connected with the 
broken install and start again.  Something like:

su
rm -r /usr/local/lib/greencard-*
rm -r /usr/local/lib/HSX11-*
rm -r /usr/local/lib/HSHGL-*
ghc-pkg --remove greencard
ghc-pkg --remove HSX11
ghc-pkg --remove HSHGL

And then reinstall.

It may be possible to get away with less or, better, to use the uninstall 
targets in the makefiles but the above has worked in the past.

--
Alastair Reid

ps If anyone can figure out exactly how to reproduce this wedged situation, 
the GHC team would like to hear from you.