X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypes%2FInstEnv.lhs;h=774808d4fea8b6018ad795d69cfeea4375a1d5e5;hb=125502965ee73734980b19c6cbcc5e6a43a860a8;hp=68a86aab2562d4639b6fddb3352fb3d48f72cb75;hpb=30c122df62ec75f9ed7f392f24c2925675bf1d06;p=ghc-hetmet.git diff --git a/compiler/types/InstEnv.lhs b/compiler/types/InstEnv.lhs index 68a86aa..774808d 100644 --- a/compiler/types/InstEnv.lhs +++ b/compiler/types/InstEnv.lhs @@ -27,7 +27,6 @@ import VarSet import Name import TcType import TyCon -import TcGadt import Unify import Outputable import BasicTypes @@ -134,13 +133,13 @@ pprInstance :: Instance -> SDoc -- Prints the Instance as an instance declaration pprInstance ispec = hang (pprInstanceHdr ispec) - 2 (ptext SLIT("--") <+> pprNameLoc (getName ispec)) + 2 (ptext (sLit "--") <+> pprNameLoc (getName ispec)) -- * pprInstanceHdr is used in VStudio to populate the ClassView tree pprInstanceHdr :: Instance -> SDoc -- Prints the Instance as an instance declaration pprInstanceHdr ispec@(Instance { is_flag = flag }) - = ptext SLIT("instance") <+> ppr flag + = ptext (sLit "instance") <+> ppr flag <+> sep [pprThetaArrow theta, pprClassPred clas tys] where (_, theta, clas, tys) = instanceHead ispec