Commit 6e2c495e authored by Ben Gamari's avatar Ben Gamari 🐢 Committed by Marge Bot

TcIface: Fix inverted logic in typechecking of source ticks

Previously we would throw away source ticks when the debug level was
non-zero. This is precisely the opposite of what was intended.

Fixes #17616.

Metric Decrease:
parent bd544d3d
Pipeline #14101 failed with stages
in 384 minutes and 43 seconds
......@@ -1367,7 +1367,7 @@ tcIfaceExpr (IfaceTick tickish expr) = do
-- If debug flag is not set: Ignore source notes
dbgLvl <- fmap debugLevel getDynFlags
case tickish of
IfaceSource{} | dbgLvl > 0
IfaceSource{} | dbgLvl == 0
-> return expr'
_otherwise -> do
tickish' <- tcIfaceTickish tickish
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment