[Haskell-cafe] Hugs parse error in library file

ross at soi.city.ac.uk ross at soi.city.ac.uk
Thu Jun 16 18:54:34 EDT 2005

On Thu, Jun 16, 2005 at 10:30:42AM -0700, james pentland wrote:
> Memo.hs imports ST, which is where Hugs reports a
> parse error.
> h:\Program Files\Hugs98\libraries\Hugs\ST.hs
> contains at line 50
> newtype ST s a = ST (forall r. (a -> r) -> r)

Add -98 to the Hugs command line: it tells Hugs to recognize
extensions beyond Haskell 98, like the forall that Hugs.ST uses.

More information about the Haskell-Cafe mailing list