X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FLexer.x;h=15745d5620f27080eca1620a7ca8a651dc044171;hp=f9e74a8d1b391811b80360d2e45b0387af083fec;hb=3ad8f84f6a75f240383e62a14472d14eb372dcd1;hpb=15486d73d84483243f40fa245e63e7e88d5ed0ad diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index f9e74a8..15745d5 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -345,6 +345,7 @@ data Token | ITderiving | ITdo | ITelse + | ITfor | IThiding | ITif | ITimport @@ -488,6 +489,7 @@ isSpecial :: Token -> Bool -- not as a keyword. isSpecial ITas = True isSpecial IThiding = True +isSpecial ITfor = True isSpecial ITqualified = True isSpecial ITforall = True isSpecial ITexport = True @@ -521,6 +523,7 @@ reservedWordsFM = listToUFM $ ( "deriving", ITderiving, 0 ), ( "do", ITdo, 0 ), ( "else", ITelse, 0 ), + ( "for", ITfor, 0 ), ( "hiding", IThiding, 0 ), ( "if", ITif, 0 ), ( "import", ITimport, 0 ),