summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Breitner <mail@joachim-breitner.de>2017-03-31 09:47:06 -0400
committerJoachim Breitner <mail@joachim-breitner.de>2017-03-31 09:47:06 -0400
commit03c7dd0941fb4974be54026ef3e4bb97451c3b1f (patch)
tree5f393de7cc0f5528ca55d88364b2debc2a4a0afb
parent69f070d8e4d6043937e3405675ac911448bfcb44 (diff)
downloadhaskell-03c7dd0941fb4974be54026ef3e4bb97451c3b1f.tar.gz
Disable bogus lint checks about levity polimorphic coerions
These checks, introduced in cea7141851ce653cb20207da3591d09e73fa396d hugely inflated build logs, which incapitated perf.haskell.org. According to Richard, the checks are useless and wrong, and that Ben plans to investigate. (https://phabricator.haskell.org/rGHCcea7141851ce653cb20207da3591d09e73fa396d#64647) Until that happens, I remove them from the code.
-rw-r--r--compiler/coreSyn/CoreLint.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/coreSyn/CoreLint.hs b/compiler/coreSyn/CoreLint.hs
index 4c3da4332c..16edcb8e60 100644
--- a/compiler/coreSyn/CoreLint.hs
+++ b/compiler/coreSyn/CoreLint.hs
@@ -1646,11 +1646,7 @@ lintCoercion co@(UnivCo prov r ty1 ty2)
-- see #9122 for discussion of these checks
checkTypes t1 t2
- = do { checkWarnL lev_poly1
- (report "left-hand type is levity-polymorphic")
- ; checkWarnL lev_poly2
- (report "right-hand type is levity-polymorphic")
- ; when (not (lev_poly1 || lev_poly2)) $
+ = do { when (not (lev_poly1 || lev_poly2)) $
do { checkWarnL (reps1 `equalLength` reps2)
(report "between values with different # of reps")
; zipWithM_ validateCoercion reps1 reps2 }}