import VarSet
import Var ( Id )
import Bag
-import Util ( isSingleton, lengthExceeds )
+import Util ( isSingleton, lengthExceeds, notNull )
import Outputable
import List ( nub )
returnTc (lie2, dict_binds `AndMonoBinds` inst_binds)
where
- doc = text ("the existential context of a data constructor")
+ doc = text ("existential context of a data constructor")
tv_list = bagToList ex_tvs
not_overloaded id = not (isOverloadedTy (idType id))
\end{code}
\begin{code}
tcStmts do_or_lc m_ty stmts
- = tcStmtsAndThen (:) do_or_lc m_ty stmts (returnTc ([], emptyLIE))
+ = ASSERT( notNull stmts )
+ tcStmtsAndThen (:) do_or_lc m_ty stmts (returnTc ([], emptyLIE))
tcStmtsAndThen
:: (TcStmt -> thing -> thing) -- Combiner