)
import IdInfo ( arityMaybe )
import Maybes ( assocMaybe, maybeToBool )
+import Outputable ( isLocallyDefined, getLocalName )
import PprStyle ( PprStyle(..) )
import PprType ( GenType{-instance Outputable-} )
import PrimRep ( getPrimRepSize, separateByPtrFollowness )
closureTypeDescr :: ClosureInfo -> String
closureTypeDescr (MkClosureInfo id lf _)
= if (isDataCon id) then -- DataCon has function types
- _UNPK_ (getOccurrenceName (dataConTyCon id)) -- We want the TyCon not the ->
+ _UNPK_ (getLocalName (dataConTyCon id)) -- We want the TyCon not the ->
else
getTyDescription (idType id)
\end{code}