Hi Dons,

You need to specify haskell 98 mode, with -98.

yhc -98 Main
Success

Underscores and upper/lower case are broken in Haskell, if anyone can
tell us what it _should_ do then we're happy to implement it! Ideally
a short and comprehensible spec of what we should allow, and what the
result should be, to accept the maximum number of programs!

You could also add {-# OPTIONS_YHC -98 #-} to the top of the file to
get this test working.

Thanks

Neil

On 2/27/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Issue 130: Parser error on _1-style identifiers
http://code.google.com/p/yhc/issues/detail?id=130

New issue report by dons00:
YHC's parser seems to die on the following (I think) valid Haskell identifiers:

    main = let _1 = 1 in print _1

Dies with:

    serenity$ yhc x.hs
    Error: /home/dons/src/nobench/spectral/integer/x.hs(1:12-1:11) Found
{-ERROR 1-} but expected one of _in_ ; {-end-of-definition-} prefix _infix_
_infixr_ _infixl_ &lt;string&gt; &lt;char&gt; &lt;rational&gt; &lt;integer&gt; ~

However hugs, ghc, hbc and nhc98 are happy with it:

    serenity$ runhugs +98 x.hs
    1


Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"yhc-bugtrack" group.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/yhc-bugtrack?hl=en
-~----------~----~----~----~------~----~------~--~---


_______________________________________________
Yhc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/yhc

Reply via email to