[Yhc] Yhc chokes on __ identifer

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Wed Oct 25 07:24:34 EDT 2006


"Neil Mitchell" <ndmitchell at gmail.com> wrote:

> Anyone want the -underscore flag to stick around, and not just be the
> default which can't be turned off?

It depends whether you want to claim Haskell'98 compatibility or not.
Haskell-prime is likely to make yhc's default behaviour with underscores
the new standard however.

> For that matter:
> Compliance Options:
>      -underscore    Enable H'98 underscore-is-lower-case (default=off)
>      -puns          Enable pre-98 named-field puns (default=on)
>      -98            Haskell 98 compliance (default=off)
> 
> Why is -98 off, why is -puns on (what are puns!!!) and lets kill this
> -underscore option. The n+k option died, others deserve to die too :)

The option -98 is just a collective switch to say -underscore -nopuns in
a shorter way.  It is off by default because of user demand.  Named
field puns were a feature of Haskell-1.3 that went away in Haskell'98,
but some users liked them and campaigned for their reinstatement.

Regards,
    Malcolm


More information about the Yhc mailing list