aboutsummaryrefslogtreecommitdiff
path: root/Parser.hs
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-02-13 22:39:14 +0100
committerTom Smeding <tom@tomsmeding.com>2024-02-13 22:39:14 +0100
commitf8ef28316dd8adeaf8d4d3e0f6e310e26ac19028 (patch)
treec0b67ea4cca2fd3350af9b2ee7487b5b9bfae13e /Parser.hs
parent23abd39ceb024bad50d44922adcdfcb2b6231cd7 (diff)
More reindent
Diffstat (limited to 'Parser.hs')
-rw-r--r--Parser.hs28
1 files changed, 14 insertions, 14 deletions
diff --git a/Parser.hs b/Parser.hs
index 971ed89..b31ffa1 100644
--- a/Parser.hs
+++ b/Parser.hs
@@ -438,21 +438,21 @@ pTypeAtom :: Parser Type
pTypeAtom = pTypeParens <|> pTypeList <|> pTypeCon <|> pTypeVar
where
pTypeParens = do
- inlineWhite
- char '('
- asum [do inlineWhite
- char ')'
- return (TTup [])
- ,do ty1 <- pType
- ty2s <- many $ do
- inlineWhite
- char ','
- pType
+ inlineWhite
+ char '('
+ asum [do inlineWhite
+ char ')'
+ return (TTup [])
+ ,do ty1 <- pType
+ ty2s <- many $ do
inlineWhite
- char ')'
- case ty2s of
- [] -> return ty1
- _ -> return (TTup (ty1 : ty2s))]
+ char ','
+ pType
+ inlineWhite
+ char ')'
+ case ty2s of
+ [] -> return ty1
+ _ -> return (TTup (ty1 : ty2s))]
pTypeList = do
inlineWhite