GHC.Driver.Ppr

ghc-lib-parser-9.14.1.20251220: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Driver.Ppr

Description

Printing related functions that depend on session state (DynFlags)

Synopsis

- showSDoc :: DynFlags -> SDoc -> String
- showSDocUnsafe :: SDoc -> String
- showSDocForUser :: DynFlags -> UnitState -> NamePprCtx -> SDoc -> String
- showPpr :: Outputable a => DynFlags -> a -> String
- showPprUnsafe :: Outputable a => a -> String
- printForUser :: DynFlags -> Handle -> NamePprCtx -> Depth -> SDoc -> IO ()
- printForUserColoured :: DynFlags -> Handle -> NamePprCtx -> Depth -> SDoc -> IO ()

# Documentation

showSDoc :: DynFlags -> SDoc -> String #

Show a SDoc as a String with the default user style

showSDocUnsafe :: SDoc -> String #

showSDocForUser :: DynFlags -> UnitState -> NamePprCtx -> SDoc -> String #

Allows caller to specify the NamePprCtx to use

showPpr :: Outputable a => DynFlags -> a -> String #

showPprUnsafe :: Outputable a => a -> String #

printForUser :: DynFlags -> Handle -> NamePprCtx -> Depth -> SDoc -> IO () #

printForUserColoured :: DynFlags -> Handle -> NamePprCtx -> Depth -> SDoc -> IO () #