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.) _______________________________________________ Hugs-Users mailing list Hugs-Users@haskell.org http://www.haskell.org/mailman/listinfo/hugs-users