where
pp_header rest = case deprec of
Nothing -> pp_modname <+> rest
- Just dt -> vcat [
- pp_modname,
- hsep [ptext SLIT("{-# DEPRECATED"), doubleQuotes (ppr dt), ptext SLIT("#-}")],
- rest
- ]
+ Just d -> vcat [ pp_modname, ppr d, rest ]
pp_modname = ptext SLIT("module") <+> pprModuleName name
pp_nonnull [] = empty
pp_nonnull xs = vcat (map ppr xs)
-
- pp_iface_version Nothing = empty
- pp_iface_version (Just n) = hsep [text "{-# INTERFACE", int n, text "#-}"]
\end{code}