[Haskell-cafe] Re: Allowing hyphens in identifiers

Deniz Dogan deniz.a.m.dogan at gmail.com
Wed Dec 9 05:40:18 EST 2009

2009/12/9 Maciej Piechotka <uzytkownik2 at gmail.com>:
> On Tue, 2009-12-08 at 10:56 +0100, Deniz Dogan wrote:
>> Has there been any serious suggestion or attempt to change the syntax
>> of Haskell to allow hyphens in identifiers, much like in Lisp
>> languages? E.g. hello-world would be a valid function name.
> You mean to parse a - b differently then a-b? You don't have the problem
> in LISP as AFAIR you use (- a b) but in Haskell it would be a problem.

I understand. How do GHC extensions work? Would a (hopefully tiny) GHC
extension make it possible to use normal hyphens (i.e. those in ASCII)
in identifiers? If so, is anyone interested in writing one?

Deniz Dogan

More information about the Haskell-Cafe mailing list