Ikkles Blintworth wrote:
> 
> Hello!
> 
> One of the students in my class came upon this weird error.. I don't understand
> why it appears, but it appears to be a problem with the hugs parser.  The error
> is "INTERNAL ERROR: parseInput".  Here is the script:
> 
> regards,
> Brian

I tried this with Hugs 98, Feb 00 release, on my NT 4.0 laptop,
and got:

bash% hugs bug.hs
__   __ __  __  ____   ___      _________________________________________
||   || ||  || ||  || ||__      Hugs 98: Based on the Haskell 98 standard
||___|| ||__|| ||__||  __||     Copyright (c) 1994-1999
||---||         ___||           World Wide Web: http://haskell.org/hugs
||   ||                         Report bugs to: [EMAIL PROTECTED]
||   || Version: February 2000  _________________________________________

Hugs mode: Restart with command line option +98 for Haskell 98 mode

Reading file "c:/hugs98/lib/Prelude.hs":
Reading file "bug.hs":
Type checking
ERROR "bug.hs" (line 69): Type error in application
*** Expression     : guess == "WILD"
*** Term           : guess
*** Type           : [[Char]]
*** Does not match : [Char]

Prelude>

No crash, and looking at the code, there is indeed a type error.

Can you give some more details, like the version of hugs
you are using, and the o/s you are running on, etc?

Thanks!

Andy Gill

Reply via email to