Tweak layout to be accepted by the alternative layout rul
authorIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 19:41:47 +0000 (19:41 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 19:41:47 +0000 (19:41 +0000)
Text/ParserCombinators/ReadP.hs

index 09fc10d..fb506f6 100644 (file)
@@ -307,7 +307,8 @@ munch1 :: (Char -> Bool) -> ReadP String
 --   Hence NOT the same as (many1 (satisfy p))
 munch1 p =
   do c <- get
-     if p c then do s <- munch p; return (c:s) else pfail
+     if p c then do s <- munch p; return (c:s)
+            else pfail
 
 choice :: [ReadP a] -> ReadP a
 -- ^ Combines all parsers in the specified list.