Internal error from invalid syntax

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Internal error from invalid syntax

Neil Turton-5
I wrote the following haskell program and hugs reported an internal
compiler error when I tried to load it.  The 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
    foo :: x

instance Foo () where
    foo ?
falcon:tmp$ hugs foo.hs
__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-2005
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Bugs: http://hackage.haskell.org/trac/hugs
||   || Version: September 2006 _________________________________________

Haskell 98 mode: Restart with command line option -98 to enable extensions

INTERNAL ERROR: parseInput
Please report this Hugs bug to http://hackage.haskell.org/trac/hugs
Hugs>
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs
Reply | Threaded
Open this post in threaded view
|

Re: Internal error from invalid syntax

Neil Mitchell
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
<[hidden email]> wrote:

> I wrote the following haskell program and hugs reported an internal
> compiler error when I tried to load it.  The 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
>    foo :: x
>
> instance Foo () where
>    foo ?
> falcon:tmp$ hugs foo.hs
> __   __ __  __  ____   ___      _________________________________________
> ||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
> ||___|| ||__|| ||__||  __||     Copyright (c) 1994-2005
> ||---||         ___||           World Wide Web: http://haskell.org/hugs
> ||   ||                         Bugs: http://hackage.haskell.org/trac/hugs
> ||   || Version: September 2006 _________________________________________
>
> Haskell 98 mode: Restart with command line option -98 to enable extensions
>
> INTERNAL ERROR: parseInput
> Please report this Hugs bug to http://hackage.haskell.org/trac/hugs
> Hugs>
> _______________________________________________
> Hugs-Bugs mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/hugs-bugs
>
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs
Reply | Threaded
Open this post in threaded view
|

Re: Internal error from invalid syntax

Neil Turton-5
Hi Neil,

You wrote:
 > 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 for that.  I tried to create a ticket myself, but hadn't
realised you have to use the guest account.

Cheers, Neil.
_______________________________________________
Hugs-Bugs mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/hugs-bugs