eq_ufBinders, eq_ufExpr, pprUfExpr
)
import CoreSyn ( CoreRule(..) )
-import BasicTypes ( NewOrData(..) )
-import Demand ( StrictnessMark(..) )
+import BasicTypes ( NewOrData(..), StrictnessMark(..) )
import ForeignCall ( CExportSpec, CCallSpec, DNCallSpec, CCallConv )
-- others:
import Class ( FunDep, DefMeth(..) )
import CStrings ( CLabelString )
import Outputable
+import Util ( eqListBy )
import SrcLoc ( SrcLoc )
+import FastString
\end{code}
tcdLoc :: SrcLoc
}
- | ForeignType { tcdName :: name, -- See remarks about IfaceSig above
- tcdFoType :: FoType,
- tcdLoc :: SrcLoc }
+ | ForeignType { tcdName :: name, -- See remarks about IfaceSig above
+ tcdExtName :: Maybe FastString,
+ tcdFoType :: FoType,
+ tcdLoc :: SrcLoc }
| TyData { tcdND :: NewOrData,
tcdCtxt :: HsContext name, -- context
= ppr con <+> hsep (map (ppr_bang) tys)
ppr_con_details con (RecCon fields)
- = ppr con <+> braces (hsep (punctuate comma (map ppr_field fields)))
+ = ppr con <+> braces (sep (punctuate comma (map ppr_field fields)))
where
ppr_field (ns, ty) = hsep (map (ppr) ns) <+>
dcolon <+>