summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-01-16 21:55:45 +0000
committerIan Lynagh <igloo@earth.li>2010-01-16 21:55:45 +0000
commitfa306a37eaae1020f4cbd6cbed04847db6c23273 (patch)
treeb4b554bf204f01ff72b8e1ae116dd6bb29cfba6d
parent987cb6856527112e9addf397a25bec8b6e6aa66b (diff)
downloadhaskell-fa306a37eaae1020f4cbd6cbed04847db6c23273.tar.gz
Teach the alternative layout rule about mdo and rec
-rw-r--r--compiler/parser/Lexer.x2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x
index d350f11ee4..51aa2f397f 100644
--- a/compiler/parser/Lexer.x
+++ b/compiler/parser/Lexer.x
@@ -1954,6 +1954,8 @@ lexTokenAlr = do mPending <- popPendingImplicitToken
ITlet -> setAlrExpectingOCurly (Just ALRLayoutLet)
ITof -> setAlrExpectingOCurly (Just ALRLayoutOf)
ITdo -> setAlrExpectingOCurly (Just ALRLayoutDo)
+ ITmdo -> setAlrExpectingOCurly (Just ALRLayoutDo)
+ ITrec -> setAlrExpectingOCurly (Just ALRLayoutDo)
_ -> return ()
return t