Reorder parsers so that "perform" declarations are tried earlier
commitd78dc66c864daeb16d738bf0b7dd4172582d25c6
authorEvan Czaplicki <info@elm-lang.org>
dateFri 20 Mar 2015, 17:01 (12 years ago)
parent882773e
src/Parse/Declaration.hs+1−1
@@ -15,7 +15,7 @@ import qualified Parse.Type as Type
1515
1616declaration :: IParser D.SourceDecl
1717declaration =
18− typeDecl <|> infixDecl <|> port <|> definition <|> perform
18+ typeDecl <|> infixDecl <|> port <|> perform <|> definition
1919
2020
2121definition :: IParser D.SourceDecl