git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge pull request #1913 from DavidLindbom/bugfix-1881
7fc9e1dPhil Freeman
examples/failing/1881.pursnew file+6
@@ -0,0 +1,6 @@
1+-- @shouldFailWith ErrorParsingModule
2+module Main where
3+
4+foo =
5+bar :: Int
6+bar = 3
examples/passing/1881.pursnew file+17
@@ -0,0 +1,17 @@
1+module Main where
2+
3+foo =
4+ 1
5+
6+bar
7+ = 2
8+
9+baz
10+ =
11+ 3
12+
13+qux
14+ =
15+ 3
16+
17+main = Control.Monad.Eff.Console.log "Done"
src/Language/PureScript/Parser/Declarations.hs+1
@@ -93,6 +93,7 @@ parseValueDeclaration = do
93 where
93 where
94 parseValueWithWhereClause :: TokenParser Expr
94 parseValueWithWhereClause :: TokenParser Expr
95 parseValueWithWhereClause = do
95 parseValueWithWhereClause = do
96+ C.indented
96 value <- parseValue
97 value <- parseValue
97 whereClause <- P.optionMaybe $ do
98 whereClause <- P.optionMaybe $ do
98 C.indented
99 C.indented