git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1744 from purescript/1723

Fix #1723, revert parser change.

commit3c6d99d9aa6dde6fcf5a4a225b46140cb5ed5609 authorPhil Freeman <paf31@cantab.net> dateSun 20 Dec 2015, 16:58 (11 years ago) parenta30de176ee9135
1 file changed+2−2
src/Language/PureScript/Parser/Declarations.hs+2−2
src/Language/PureScript/Parser/Declarations.hs+2−2
@@ -322,8 +322,8 @@ parseIdentifierAndValue =
322322 return (name, b)
323323 <|> (,) <$> (C.indented *> stringLiteral) <*> rest
324324 where
325− rest = C.indented *> colon *> C.indented *> val
326− val = (underscore *> pure Nothing) <|> (Just <$> parseValue)
325+ rest = C.indented *> colon *> C.indented *> val
326+ val = P.try (Just <$> parseValue) <|> (underscore *> pure Nothing)
327327
328328parseAbs :: TokenParser Expr
329329parseAbs = do