Remove special lambda unicode character, it didn't work anyway
authorSimon Marlow <simonmar@microsoft.com>
Tue, 16 Jan 2007 16:11:00 +0000 (16:11 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 16 Jan 2007 16:11:00 +0000 (16:11 +0000)
Since lambda is a lower-case letter, it's debatable whether we want to
steal it to mean lambda in Haskell source.  However if we did, then we
would probably want to make it a "special" symbol, not just a reserved
symbol, otherwise writing \x->... (using unicode characters of course)
wouldn't work, because \x would be treated as a single identifier,
you'd need a space.

compiler/parser/Lexer.x

index 4238938..0526b1e 100644 (file)
@@ -646,7 +646,6 @@ reservedSymsFM = listToUFM $
        ,(">>-",        ITRarrowtail,   bit arrowsBit)
 
 #if __GLASGOW_HASKELL__ >= 605
-       ,("λ", ITlam,          bit glaExtsBit)
        ,("∷",   ITdcolon,       bit glaExtsBit)
        ,("⇒",   ITdarrow,    bit glaExtsBit)
        ,("∀",        ITforall,       bit glaExtsBit)