summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-09-28 15:26:21 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2012-09-28 15:26:21 +0100
commit6a9542aff4a508fb5175193948e07bb50062ba75 (patch)
tree341e5f996a23ff89b6d80f526d9719fb2bf3390e /compiler
parent444577a049bcc9c4b577134258bf50c630d215ad (diff)
downloadhaskell-6a9542aff4a508fb5175193948e07bb50062ba75.tar.gz
Better ASSERT message
Diffstat (limited to 'compiler')
-rw-r--r--compiler/typecheck/TcSMonad.lhs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/typecheck/TcSMonad.lhs b/compiler/typecheck/TcSMonad.lhs
index a21672942b..7324798257 100644
--- a/compiler/typecheck/TcSMonad.lhs
+++ b/compiler/typecheck/TcSMonad.lhs
@@ -1239,7 +1239,7 @@ isTouchableMetaTyVarTcS tv
isFilledMetaTyVar_maybe :: TcTyVar -> TcS (Maybe Type)
isFilledMetaTyVar_maybe tv
- = ASSERT( isTcTyVar tv )
+ = ASSERT2( isTcTyVar tv, ppr tv )
case tcTyVarDetails tv of
MetaTv { mtv_ref = ref }
-> do { cts <- wrapTcS (TcM.readTcRef ref)