[Haskell-cafe] Adding GLUT package to WinHugs

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Mon Oct 15 17:10:40 EDT 2007


What do you reckon we should do? We could change:

#if __GLASGOW_HASKELL__ >= 603 || __HUGS__
import Text.ParserCombinators.ReadP hiding (ReadP)
import qualified Text.ParserCombinators.ReadP as ReadP

to drop the || __HUGS__ and have hugs always use the bundled H98 ReadP,
or we can continue to use the non-H98 one that comes with hugs. This has
the obvious downside that users need to know to run:

runhugs -98 Setup.hs

which is a bit unfortunate.


On Wed, 2007-10-10 at 18:01 +0100, Neil Mitchell wrote:
> Hi Peter,
> >  Also typing runhugs Setup.hs configure fails with
> >
> >  runhugs: Error occurred
> >  ERROR "c:\program
> > files\winhugs\packages\base\Text\ParserCombinators\ReadP.hs":156
> > - Syntax error in type expression (unexpected `.')
> This is because Cabal gets it wrong. You need to type runhugs -98
> Setup configure. There is an easy fix, which is for the Cabal
> developers to always use the bundled ReadP rather than the library
> one. I talked to Duncan about this in Germany, and he said he'd fix it
> :-)

More information about the cabal-devel mailing list