import Interpreter
import CmStaticInfo ( PackageConfigInfo )
import Module ( ModuleName, PackageName )
-import InterpSyn ( UnlinkedIBind, HValue, binder )
-import Module ( Module )
import Outputable ( SDoc )
import FiniteMap ( emptyFM )
import Digraph ( SCC(..), flattenSCC )
ppr (DotO path) = text "DotO" <+> text path
ppr (DotA path) = text "DotA" <+> text path
ppr (DotDLL path) = text "DotDLL" <+> text path
- ppr (Trees binds _) = text "Trees" <+> ppr (map binder binds)
+ ppr (Trees binds _) = text "Trees" <+> ppr binds
isObject (DotO _) = True
ppr x = text (show (A# (unsafeCoerce# x :: Addr#)))
-- ptext SLIT("<O>") -- unidentified lurking object
+instance (Outputable var, Outputable con) => Outputable (IBind con var) where
+ ppr ibind = pprIBind ibind
+
pprIBind :: (Outputable var, Outputable con) => IBind con var -> SDoc
pprIBind (IBind v e) = ppr v <+> char '=' <+> pprIExpr e