on master help sign in
style: add additional whitespace between top-level definitions
e4d6baaEvan Czaplicki
compiler/Parse/Declaration.hs+3
@@ -9,12 +9,15 @@ import qualified Parse.Expression as Expr
9import qualified Parse.Type as Type
9import qualified Parse.Type as Type
10import qualified AST.Declaration as D
10import qualified AST.Declaration as D
11
11
12+
12declaration :: IParser D.SourceDecl
13declaration :: IParser D.SourceDecl
13declaration = typeDecl <|> infixDecl <|> port <|> definition
14declaration = typeDecl <|> infixDecl <|> port <|> definition
14
15
16+
15definition :: IParser D.SourceDecl
17definition :: IParser D.SourceDecl
16definition = D.Definition <$> Expr.def
18definition = D.Definition <$> Expr.def
17
19
20+
18typeDecl :: IParser D.SourceDecl
21typeDecl :: IParser D.SourceDecl
19typeDecl =
22typeDecl =
20 do reserved "type" <?> "type declaration"
23 do reserved "type" <?> "type declaration"