import TyVar ( SYN_IE(TyVar), GenTyVar )
import Usage ( SYN_IE(Usage), GenUsage )
import ErrUtils ( SYN_IE(Error), SYN_IE(Message), SYN_IE(Warning) )
-import CmdLineOpts ( opt_PprStyle_All )
+import CmdLineOpts ( opt_PprStyle_All, opt_PprUserLength )
import SST
import Bag ( Bag, emptyBag, isEmptyBag,
import Unique ( Unique )
import Util
import Pretty
-import PprStyle ( PprStyle(..) )
-#if __GLASGOW_HASKELL__ >= 202
-import Outputable
-#endif
+import Outputable ( PprStyle(..), Outputable(..) )
+
infixr 9 `thenTc`, `thenTc_`, `thenNF_Tc`, `thenNF_Tc_`
\end{code}
-> TcError -- The complete error report
mkTcErr locn ctxt msg sty
- = hang (hcat [ppr PprForUser locn, ptext SLIT(": "), msg sty])
+ = hang (hcat [ppr (PprForUser opt_PprUserLength) locn, ptext SLIT(": "), msg sty])
4 (vcat [msg sty | msg <- ctxt_to_use])
where
ctxt_to_use =