Parsec: GHC /= Hugs?

Markus.Schnell@infineon.com Markus.Schnell@infineon.com
Tue, 4 Mar 2003 16:00:53 +0100


My program has a different behaviour under hugs and ghc.

I wrote a very simple parser with Parsec and it parses a file quite easily -
as long as
I use hugs to run it. But when I compile it with ghc, the parse fails.
(I'm currently working on WinNT with cygwin).

Something else, but related: how do I avoid writing different Code for Hugs
and ghc?
For example, I had to hide "Word" in Hugs with 
> import Prelude hiding (Word)
but was not allowed to do that with ghc. I ended up using "Wort".

Why the difference?

Markus