Better pretty-printing for TvSubst
authorsimonpj@microsoft.com <unknown>
Fri, 18 Aug 2006 16:05:51 +0000 (16:05 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 18 Aug 2006 16:05:51 +0000 (16:05 +0000)
compiler/types/Type.lhs

index 872feb0..fdcec30 100644 (file)
@@ -1135,9 +1135,9 @@ zip_ty_env tvs      tys      env   = pprTrace "Var/Type length mismatch: " (ppr
 
 instance Outputable TvSubst where
   ppr (TvSubst ins env) 
-    = sep[ ptext SLIT("<TvSubst"),
-          nest 2 (ptext SLIT("In scope:") <+> ppr ins), 
-          nest 2 (ptext SLIT("Env:") <+> ppr env) ]
+    = brackets $ sep[ ptext SLIT("TvSubst"),
+                     nest 2 (ptext SLIT("In scope:") <+> ppr ins), 
+                     nest 2 (ptext SLIT("Env:") <+> ppr env) ]
 \end{code}
 
 %************************************************************************