import VarEnv
import Name ( Name, isSystemName )
import ErrUtils ( Message )
-import Maybes ( fromJust, isNothing )
+import Maybes ( expectJust, isNothing )
import BasicTypes ( Arity )
import UniqSupply ( uniqsFromSupply )
import Util ( notNull, equalLength )
; case mb_tys' of
Just tys' -> return (TyConApp tc tys')
-- Retain the synonym (the common case)
- Nothing -> go (fromJust (tcView (TyConApp tc tys)))
+ Nothing -> go (expectJust "checkTauTvUpdate"
+ (tcView (TyConApp tc tys)))
-- Try again, expanding the synonym
}
\end{code}