[Hugs-users] Setup.hs for base

Ross Paterson ross at soi.city.ac.uk
Wed Nov 22 04:59:06 EST 2006


On Tue, Nov 21, 2006 at 02:30:22PM +0000, Ian Lynagh wrote:
> I'm trying to get GHC to build the libraries with cabal, but without
> breaking the hugs build. For base I have a Setup.hs (attached, along
> with the modified base.cabal) which does some kludging to work around
> the fact that base is different for different impls. After a bit of
> digging I altered libraries/tools/convert_libraries to use a
> Setup.hs/Setup.lhs if it exists rather than always using
> packages/Cabal/examples/hapax.hs, but I now get:
> 
> + ../../src/runhugs -98 Setup.hs configure --verbose --hugs --prefix=/asd --scratchdir=../../hugsdir/packages/base --with-hsc2hs=../../libraries/tools/hsc2hs --with-cpphs=../../libraries/tools/cpphs --with-compiler=../../src/ffihugs
> runhugs: Error occurred
> ERROR "./Data/List.hs" - Module "Data.List" already loaded
> 
> so I am rather stuck.

I've changed convert_libraries to do what you want.  (The problem was
that runhugs allows the Main module to import modules from its vicinity.)



More information about the Hugs-Users mailing list