Bug fix for alternative layout rule
authorIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 20:58:09 +0000 (20:58 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 20:58:09 +0000 (20:58 +0000)
compiler/parser/Lexer.x

index 00926bd..5083470 100644 (file)
@@ -2050,7 +2050,7 @@ alternativeLayoutRuleToken t
                  do setALRContext ls
                     setPendingImplicitTokens [t]
                     return (L thisLoc ITccurly)
-             (ITin, _ : ls, _) ->
+             (ITin, ALRLayout _ _ : ls, _) ->
                  do setALRContext ls
                     setNextToken t
                     return (L thisLoc ITccurly)