summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Parser/Statement.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Parser/Statement.hs b/src/Parser/Statement.hs
index 8dd285a..b2f3cd6 100644
--- a/src/Parser/Statement.hs
+++ b/src/Parser/Statement.hs
@@ -123,7 +123,7 @@ instance (ParamType a, ParamType b) => ParamType (Either a b) where
type ParamRep (Either a b) = Either (ParamRep a) (ParamRep b)
parseParam _ = try' (Left <$> parseParam @a Proxy) <|> (Right <$> parseParam @b Proxy)
where
- try' act = try $ do
+ try' act = try $ region id $ do
x <- act
(stateParseErrors <$> getParserState) >>= \case
[] -> return x