[Haskell-cafe] How outdated is Hugs?

wren ng thornton wren at freegeek.org
Wed Jan 28 16:22:14 EST 2009

Bryan O'Sullivan wrote:
> On Tue, Jan 27, 2009 at 1:18 PM, Duncan Coutts
> <duncan.coutts at worc.ox.ac.uk>wrote:
>> Not since then, no. However a lot of things work fine, especially if you
>> use a newer Cabal version.
> I've been unable to figure out how to build Cabal with Hugs 2006.09.04:
> $ *runhugs -98 Setup configure --hugs --prefix=/usr*
> runhugs: Error occurred
> ERROR "./Distribution/Compat/ReadP.hs":70 - Syntax error in module
> definition (unexpected selector "#if")
> The README file is GHC-centric, so I'm at a bit of a dead end. Do you have
> any suggestions?

That looks like a standard "CPP not enabled" error message. Try passing 
-F"$cpp" where $cpp is the command for running cpp as a filter. If the 
FFI is used anywhere, you need to compile with ffihugs before using hugs 
(see the man page).

Live well,

More information about the Haskell-Cafe mailing list