Re: Internal error from invalid syntax

Neil Mitchell <[email protected]> Mon, 20 Apr 2009 10:07:00 +0100
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <[email protected]>
Hi Neil,

I reported it in the bug tracker:
http://hackage.haskell.org/trac/hugs/ticket/91 - at least this way it
won't get forgotten.

Thanks

Neil

On Sun, Apr 12, 2009 at 7:24 PM, Neil Turton
<[email protected]> wrote:
> I wrote the following haskell program and hugs reported an internal
> compiler error when I tried to load it. =A0The syntax is invalid but I
> would expect a sensible error message rather than the internal error
> which I got.
>
> Cheers, Neil.
>
> falcon:tmp$ cat foo.hs
> class Foo x where
> =A0 =A0foo :: x
>
> instance Foo () where
> =A0 =A0foo ?
> falcon:tmp$ hugs foo.hs
> __ =A0 __ __ =A0__ =A0____ =A0 ___ =A0 =A0 =A0___________________________=
______________
> || =A0 || || =A0|| || =A0|| ||__ =A0 =A0 =A0Hugs 98: Based on the Haskell=
 98 standard
> ||___|| ||__|| ||__|| =A0__|| =A0 =A0 Copyright (c) 1994-2005
> ||---|| =A0 =A0 =A0 =A0 ___|| =A0 =A0 =A0 =A0 =A0 World Wide Web: http://=
haskell.org/hugs
> || =A0 || =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Bugs: http://ha=
ckage.haskell.org/trac/hugs
> || =A0 || Version: September 2006 _______________________________________=
__
>
> Haskell 98 mode: Restart with command line option -98 to enable extension=
s
>
> INTERNAL ERROR: parseInput
> Please report this Hugs bug to http://hackage.haskell.org/trac/hugs
> Hugs>
> _______________________________________________
> Hugs-Bugs mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/hugs-bugs
>