summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorMatthew Pickering <matthew.pickering@tweag.io>2018-06-04 17:50:01 -0400
committerBen Gamari <ben@smart-cactus.org>2018-06-04 17:50:03 -0400
commit97cea3155c7161b7983625417b717239ff52e100 (patch)
treea384a2d792622c3abf75812efe7db454f82c3da4 /compiler
parent1a61c6b8c8959ca4cd9500d261ae225210eaff64 (diff)
downloadhaskell-97cea3155c7161b7983625417b717239ff52e100.tar.gz
Improve extendTvSubst assertion
Reviewers: bgamari Reviewed By: bgamari Subscribers: rwbarton, thomie, carter Differential Revision: https://phabricator.haskell.org/D4790
Diffstat (limited to 'compiler')
-rw-r--r--compiler/simplCore/SimplEnv.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/simplCore/SimplEnv.hs b/compiler/simplCore/SimplEnv.hs
index 7504fc6c60..18d9f57f6f 100644
--- a/compiler/simplCore/SimplEnv.hs
+++ b/compiler/simplCore/SimplEnv.hs
@@ -319,7 +319,7 @@ extendIdSubst env@(SimplEnv {seIdSubst = subst}) var res
extendTvSubst :: SimplEnv -> TyVar -> Type -> SimplEnv
extendTvSubst env@(SimplEnv {seTvSubst = tsubst}) var res
- = ASSERT( isTyVar var )
+ = ASSERT2( isTyVar var, ppr var $$ ppr res )
env {seTvSubst = extendVarEnv tsubst var res}
extendCvSubst :: SimplEnv -> CoVar -> Coercion -> SimplEnv