Outputable

ghc-8.10.7: The GHC API

Safe Haskell | None
Language | Haskell2010

Outputable

Contents

- Type classes
- Pretty printing combinators
- Converting `SDoc` into strings and outputing it
- Controlling the style in which output is printed
- Error handling and debugging utilities

Description

This module defines classes and functions for pretty-printing. It also exports a number of helpful debugging and other utilities such as `trace` and `panic`.

The interface to this module is very similar to the standard Hughes-PJ pretty printing module, except that it exports a number of additional functions that are rarely used, and works over the `SDoc` type.

Synopsis

- class Outputable a where
  - ppr :: a -> SDoc
  - pprPrec :: Rational -> a -> SDoc
- class Outputable a => OutputableBndr a where
  - pprBndr :: BindingSite -> a -> SDoc
  - pprPrefixOcc, pprInfixOcc :: a -> SDoc
  - bndrIsJoin_maybe :: a -> Maybe Int
- data SDoc
- runSDoc :: SDoc -> SDocContext -> Doc
- initSDocContext :: DynFlags -> PprStyle -> SDocContext
- docToSDoc :: Doc -> SDoc
- interppSP :: Outputable a => [a] -> SDoc
- interpp'SP :: Outputable a => [a] -> SDoc
- pprQuotedList :: Outputable a => [a] -> SDoc
- pprWithCommas :: (a -> SDoc) -> [a] -> SDoc
- quotedListWithOr :: [SDoc] -> SDoc
- quotedListWithNor :: [SDoc] -> SDoc
- pprWithBars :: (a -> SDoc) -> [a] -> SDoc
- empty :: SDoc
- isEmpty :: DynFlags -> SDoc -> Bool
- nest :: Int -> SDoc -> SDoc
- char :: Char -> SDoc
- text :: String -> SDoc
- ftext :: FastString -> SDoc
- ptext :: PtrString -> SDoc
- ztext :: FastZString -> SDoc
- int :: Int -> SDoc
- intWithCommas :: Integral a => a -> SDoc
- integer :: Integer -> SDoc
- word :: Integer -> SDoc
- float :: Float -> SDoc
- double :: Double -> SDoc
- rational :: Rational -> SDoc
- doublePrec :: Int -> Double -> SDoc
- parens :: SDoc -> SDoc
- cparen :: Bool -> SDoc -> SDoc
- brackets :: SDoc -> SDoc
- braces :: SDoc -> SDoc
- quotes :: SDoc -> SDoc
- quote :: SDoc -> SDoc
- doubleQuotes :: SDoc -> SDoc
- angleBrackets :: SDoc -> SDoc
- semi :: SDoc
- comma :: SDoc
- colon :: SDoc
- dcolon :: SDoc
- space :: SDoc
- equals :: SDoc
- dot :: SDoc
- vbar :: SDoc
- arrow :: SDoc
- larrow :: SDoc
- darrow :: SDoc
- arrowt :: SDoc
- larrowt :: SDoc
- arrowtt :: SDoc
- larrowtt :: SDoc
- lparen :: SDoc
- rparen :: SDoc
- lbrack :: SDoc
- rbrack :: SDoc
- lbrace :: SDoc
- rbrace :: SDoc
- underscore :: SDoc
- blankLine :: SDoc
- forAllLit :: SDoc
- kindType :: SDoc
- bullet :: SDoc
- (<>) :: SDoc -> SDoc -> SDoc
- (<+>) :: SDoc -> SDoc -> SDoc
- hcat :: [SDoc] -> SDoc
- hsep :: [SDoc] -> SDoc
- ($$) :: SDoc -> SDoc -> SDoc
- ($+$) :: SDoc -> SDoc -> SDoc
- vcat :: [SDoc] -> SDoc
- sep :: [SDoc] -> SDoc
- cat :: [SDoc] -> SDoc
- fsep :: [SDoc] -> SDoc
- fcat :: [SDoc] -> SDoc
- hang :: SDoc -> Int -> SDoc -> SDoc
- hangNotEmpty :: SDoc -> Int -> SDoc -> SDoc
- punctuate :: SDoc -> [SDoc] -> [SDoc]
- ppWhen :: Bool -> SDoc -> SDoc
- ppUnless :: Bool -> SDoc -> SDoc
- speakNth :: Int -> SDoc
- speakN :: Int -> SDoc
- speakNOf :: Int -> SDoc -> SDoc
- plural :: [a] -> SDoc
- isOrAre :: [a] -> SDoc
- doOrDoes :: [a] -> SDoc
- unicodeSyntax :: SDoc -> SDoc -> SDoc
- coloured :: PprColour -> SDoc -> SDoc
- keyword :: SDoc -> SDoc
- printSDoc :: Mode -> DynFlags -> Handle -> PprStyle -> SDoc -> IO ()
- printSDocLn :: Mode -> DynFlags -> Handle -> PprStyle -> SDoc -> IO ()
- printForUser :: DynFlags -> Handle -> PrintUnqualified -> SDoc -> IO ()
- printForUserPartWay :: DynFlags -> Handle -> Int -> PrintUnqualified -> SDoc -> IO ()
- printForC :: DynFlags -> Handle -> SDoc -> IO ()
- bufLeftRenderSDoc :: DynFlags -> BufHandle -> PprStyle -> SDoc -> IO ()
- pprCode :: CodeStyle -> SDoc -> SDoc
- mkCodeStyle :: CodeStyle -> PprStyle
- showSDoc :: DynFlags -> SDoc -> String
- showSDocUnsafe :: SDoc -> String
- showSDocOneLine :: DynFlags -> SDoc -> String
- showSDocForUser :: DynFlags -> PrintUnqualified -> SDoc -> String
- showSDocDebug :: DynFlags -> SDoc -> String
- showSDocDump :: DynFlags -> SDoc -> String
- showSDocDumpOneLine :: DynFlags -> SDoc -> String
- showSDocUnqual :: DynFlags -> SDoc -> String
- showPpr :: Outputable a => DynFlags -> a -> String
- renderWithStyle :: DynFlags -> SDoc -> PprStyle -> String
- pprInfixVar :: Bool -> SDoc -> SDoc
- pprPrefixVar :: Bool -> SDoc -> SDoc
- pprHsChar :: Char -> SDoc
- pprHsString :: FastString -> SDoc
- pprHsBytes :: ByteString -> SDoc
- primFloatSuffix :: SDoc
- primCharSuffix :: SDoc
- primWordSuffix :: SDoc
- primDoubleSuffix :: SDoc
- primInt64Suffix :: SDoc
- primWord64Suffix :: SDoc
- primIntSuffix :: SDoc
- pprPrimChar :: Char -> SDoc
- pprPrimInt :: Integer -> SDoc
- pprPrimWord :: Integer -> SDoc
- pprPrimInt64 :: Integer -> SDoc
- pprPrimWord64 :: Integer -> SDoc
- pprFastFilePath :: FastString -> SDoc
- pprFilePathString :: FilePath -> SDoc
- data BindingSite
  - = LambdaBind
  - | CaseBind
  - | CasePatBind
  - | LetBind
- data PprStyle
- data CodeStyle
  - = CStyle
  - | AsmStyle
- data PrintUnqualified = QueryQualify {
  - queryQualifyName :: QueryQualifyName
  - queryQualifyModule :: QueryQualifyModule
  - queryQualifyPackage :: QueryQualifyPackage
  }
- type QueryQualifyName = Module -> OccName -> QualifyName
- type QueryQualifyModule = Module -> Bool
- type QueryQualifyPackage = UnitId -> Bool
- reallyAlwaysQualify :: PrintUnqualified
- reallyAlwaysQualifyNames :: QueryQualifyName
- alwaysQualify :: PrintUnqualified
- alwaysQualifyNames :: QueryQualifyName
- alwaysQualifyModules :: QueryQualifyModule
- neverQualify :: PrintUnqualified
- neverQualifyNames :: QueryQualifyName
- neverQualifyModules :: QueryQualifyModule
- alwaysQualifyPackages :: QueryQualifyPackage
- neverQualifyPackages :: QueryQualifyPackage
- data QualifyName
  - = NameUnqual
  - | NameQual ModuleName
  - | NameNotInScope1
  - | NameNotInScope2
- queryQual :: PprStyle -> PrintUnqualified
- sdocWithDynFlags :: (DynFlags -> SDoc) -> SDoc
- sdocWithPlatform :: (Platform -> SDoc) -> SDoc
- updSDocDynFlags :: (DynFlags -> DynFlags) -> SDoc -> SDoc
- getPprStyle :: (PprStyle -> SDoc) -> SDoc
- withPprStyle :: PprStyle -> SDoc -> SDoc
- withPprStyleDoc :: DynFlags -> PprStyle -> SDoc -> Doc
- setStyleColoured :: Bool -> PprStyle -> PprStyle
- pprDeeper :: SDoc -> SDoc
- pprDeeperList :: ([SDoc] -> SDoc) -> [SDoc] -> SDoc
- pprSetDepth :: Depth -> SDoc -> SDoc
- codeStyle :: PprStyle -> Bool
- userStyle :: PprStyle -> Bool
- debugStyle :: PprStyle -> Bool
- dumpStyle :: PprStyle -> Bool
- asmStyle :: PprStyle -> Bool
- qualName :: PprStyle -> QueryQualifyName
- qualModule :: PprStyle -> QueryQualifyModule
- qualPackage :: PprStyle -> QueryQualifyPackage
- mkErrStyle :: DynFlags -> PrintUnqualified -> PprStyle
- defaultErrStyle :: DynFlags -> PprStyle
- defaultDumpStyle :: DynFlags -> PprStyle
- mkDumpStyle :: DynFlags -> PrintUnqualified -> PprStyle
- defaultUserStyle :: DynFlags -> PprStyle
- mkUserStyle :: DynFlags -> PrintUnqualified -> Depth -> PprStyle
- cmdlineParserStyle :: DynFlags -> PprStyle
- data Depth
  - = AllTheWay
  - | PartWay Int
- ifPprDebug :: SDoc -> SDoc -> SDoc
- whenPprDebug :: SDoc -> SDoc
- getPprDebug :: (Bool -> SDoc) -> SDoc
- pprPanic :: HasCallStack => String -> SDoc -> a
- pprSorry :: String -> SDoc -> a
- assertPprPanic :: HasCallStack => String -> Int -> SDoc -> a
- pprPgmError :: String -> SDoc -> a
- pprTrace :: String -> SDoc -> a -> a
- pprTraceDebug :: String -> SDoc -> a -> a
- pprTraceWith :: String -> (a -> SDoc) -> a -> a
- pprTraceIt :: Outputable a => String -> a -> a
- warnPprTrace :: HasCallStack => Bool -> String -> Int -> SDoc -> a -> a
- pprSTrace :: HasCallStack => SDoc -> a -> a
- pprTraceException :: ExceptionMonad m => String -> SDoc -> m a -> m a
- pprTraceM :: Applicative f => String -> SDoc -> f ()
- trace :: String -> a -> a
- pgmError :: String -> a
- panic :: String -> a
- sorry :: String -> a
- assertPanic :: String -> Int -> a
- pprDebugAndThen :: DynFlags -> (String -> a) -> SDoc -> SDoc -> a
- callStackDoc :: HasCallStack => SDoc

# Type classes

class Outputable a where #

Class designating that some type has an `SDoc` representation

Minimal complete definition

Nothing

Methods

ppr :: a -> SDoc #

pprPrec :: Rational -> a -> SDoc #

#### Instances

Instances details

Outputable Bool # |
Instance details Defined in Outputable Methods ppr :: Bool -> SDoc # pprPrec :: Rational -> Bool -> SDoc #
Outputable Char # |
Instance details Defined in Outputable Methods ppr :: Char -> SDoc # pprPrec :: Rational -> Char -> SDoc #
Outputable Double # |
Instance details Defined in Outputable Methods ppr :: Double -> SDoc # pprPrec :: Rational -> Double -> SDoc #
Outputable Float # |
Instance details Defined in Outputable Methods ppr :: Float -> SDoc # pprPrec :: Rational -> Float -> SDoc #
Outputable Int # |
Instance details Defined in Outputable Methods ppr :: Int -> SDoc # pprPrec :: Rational -> Int -> SDoc #
Outputable Int32 # |
Instance details Defined in Outputable Methods ppr :: Int32 -> SDoc # pprPrec :: Rational -> Int32 -> SDoc #
Outputable Int64 # |
Instance details Defined in Outputable Methods ppr :: Int64 -> SDoc # pprPrec :: Rational -> Int64 -> SDoc #
Outputable Integer # |
Instance details Defined in Outputable Methods ppr :: Integer -> SDoc # pprPrec :: Rational -> Integer -> SDoc #
Outputable Ordering # |
Instance details Defined in Outputable Methods ppr :: Ordering -> SDoc # pprPrec :: Rational -> Ordering -> SDoc #
Outputable Word # |
Instance details Defined in Outputable Methods ppr :: Word -> SDoc # pprPrec :: Rational -> Word -> SDoc #
Outputable Word16 # |
Instance details Defined in Outputable Methods ppr :: Word16 -> SDoc # pprPrec :: Rational -> Word16 -> SDoc #
Outputable Word32 # |
Instance details Defined in Outputable Methods ppr :: Word32 -> SDoc # pprPrec :: Rational -> Word32 -> SDoc #
Outputable () # |
Instance details Defined in Outputable Methods ppr :: () -> SDoc # pprPrec :: Rational -> () -> SDoc #
Outputable Fingerprint # |
Instance details Defined in Outputable Methods ppr :: Fingerprint -> SDoc # pprPrec :: Rational -> Fingerprint -> SDoc #
Outputable Extension # |
Instance details Defined in Outputable Methods ppr :: Extension -> SDoc # pprPrec :: Rational -> Extension -> SDoc #
Outputable Serialized # |
Instance details Defined in Outputable Methods ppr :: Serialized -> SDoc # pprPrec :: Rational -> Serialized -> SDoc #
Outputable Delta # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: Delta -> SDoc # pprPrec :: Rational -> Delta -> SDoc #
Outputable Name # |
Instance details Defined in Name Methods ppr :: Name -> SDoc # pprPrec :: Rational -> Name -> SDoc #
Outputable OccName # |
Instance details Defined in OccName Methods ppr :: OccName -> SDoc # pprPrec :: Rational -> OccName -> SDoc #
Outputable SDoc # |
Instance details Defined in Outputable Methods ppr :: SDoc -> SDoc # pprPrec :: Rational -> SDoc -> SDoc #
Outputable PrimOp # |
Instance details Defined in PrimOp Methods ppr :: PrimOp -> SDoc # pprPrec :: Rational -> PrimOp -> SDoc #
Outputable FastString # |
Instance details Defined in Outputable Methods ppr :: FastString -> SDoc # pprPrec :: Rational -> FastString -> SDoc #
Outputable ComponentId # |
Instance details Defined in Module Methods ppr :: ComponentId -> SDoc # pprPrec :: Rational -> ComponentId -> SDoc #
Outputable InstalledUnitId # |
Instance details Defined in Module Methods ppr :: InstalledUnitId -> SDoc # pprPrec :: Rational -> InstalledUnitId -> SDoc #
Outputable UnitId # |
Instance details Defined in Module Methods ppr :: UnitId -> SDoc # pprPrec :: Rational -> UnitId -> SDoc #
Outputable ModuleName # |
Instance details Defined in Module Methods ppr :: ModuleName -> SDoc # pprPrec :: Rational -> ModuleName -> SDoc #
Outputable Module # |
Instance details Defined in Module Methods ppr :: Module -> SDoc # pprPrec :: Rational -> Module -> SDoc #
Outputable QualifyName # |
Instance details Defined in Outputable Methods ppr :: QualifyName -> SDoc # pprPrec :: Rational -> QualifyName -> SDoc #
Outputable PprStyle # |
Instance details Defined in Outputable Methods ppr :: PprStyle -> SDoc # pprPrec :: Rational -> PprStyle -> SDoc #
Outputable SrcSpan # |
Instance details Defined in SrcLoc Methods ppr :: SrcSpan -> SDoc # pprPrec :: Rational -> SrcSpan -> SDoc #
Outputable RealSrcSpan # |
Instance details Defined in SrcLoc Methods ppr :: RealSrcSpan -> SDoc # pprPrec :: Rational -> RealSrcSpan -> SDoc #
Outputable SrcLoc # |
Instance details Defined in SrcLoc Methods ppr :: SrcLoc -> SDoc # pprPrec :: Rational -> SrcLoc -> SDoc #
Outputable RealSrcLoc # |
Instance details Defined in SrcLoc Methods ppr :: RealSrcLoc -> SDoc # pprPrec :: Rational -> RealSrcLoc -> SDoc #
Outputable IdDetails # |
Instance details Defined in IdInfo Methods ppr :: IdDetails -> SDoc # pprPrec :: Rational -> IdDetails -> SDoc #
Outputable TypeOrKind # |
Instance details Defined in BasicTypes Methods ppr :: TypeOrKind -> SDoc # pprPrec :: Rational -> TypeOrKind -> SDoc #
Outputable IntWithInf # |
Instance details Defined in BasicTypes Methods ppr :: IntWithInf -> SDoc # pprPrec :: Rational -> IntWithInf -> SDoc #
Outputable FractionalLit # |
Instance details Defined in BasicTypes Methods ppr :: FractionalLit -> SDoc # pprPrec :: Rational -> FractionalLit -> SDoc #
Outputable IntegralLit # |
Instance details Defined in BasicTypes Methods ppr :: IntegralLit -> SDoc # pprPrec :: Rational -> IntegralLit -> SDoc #
Outputable InlineSpec # |
Instance details Defined in BasicTypes Methods ppr :: InlineSpec -> SDoc # pprPrec :: Rational -> InlineSpec -> SDoc #
Outputable InlinePragma # |
Instance details Defined in BasicTypes Methods ppr :: InlinePragma -> SDoc # pprPrec :: Rational -> InlinePragma -> SDoc #
Outputable RuleMatchInfo # |
Instance details Defined in BasicTypes Methods ppr :: RuleMatchInfo -> SDoc # pprPrec :: Rational -> RuleMatchInfo -> SDoc #
Outputable Activation # |
Instance details Defined in BasicTypes Methods ppr :: Activation -> SDoc # pprPrec :: Rational -> Activation -> SDoc #
Outputable CompilerPhase # |
Instance details Defined in BasicTypes Methods ppr :: CompilerPhase -> SDoc # pprPrec :: Rational -> CompilerPhase -> SDoc #
Outputable SourceText # |
Instance details Defined in BasicTypes Methods ppr :: SourceText -> SDoc # pprPrec :: Rational -> SourceText -> SDoc #
Outputable SuccessFlag # |
Instance details Defined in BasicTypes Methods ppr :: SuccessFlag -> SDoc # pprPrec :: Rational -> SuccessFlag -> SDoc #
Outputable TailCallInfo # |
Instance details Defined in BasicTypes Methods ppr :: TailCallInfo -> SDoc # pprPrec :: Rational -> TailCallInfo -> SDoc #
Outputable OccInfo # |
Instance details Defined in BasicTypes Methods ppr :: OccInfo -> SDoc # pprPrec :: Rational -> OccInfo -> SDoc #
Outputable TupleSort # |
Instance details Defined in BasicTypes Methods ppr :: TupleSort -> SDoc # pprPrec :: Rational -> TupleSort -> SDoc #
Outputable OverlapMode # |
Instance details Defined in BasicTypes Methods ppr :: OverlapMode -> SDoc # pprPrec :: Rational -> OverlapMode -> SDoc #
Outputable OverlapFlag # |
Instance details Defined in BasicTypes Methods ppr :: OverlapFlag -> SDoc # pprPrec :: Rational -> OverlapFlag -> SDoc #
Outputable Origin # |
Instance details Defined in BasicTypes Methods ppr :: Origin -> SDoc # pprPrec :: Rational -> Origin -> SDoc #
Outputable RecFlag # |
Instance details Defined in BasicTypes Methods ppr :: RecFlag -> SDoc # pprPrec :: Rational -> RecFlag -> SDoc #
Outputable Boxity # |
Instance details Defined in BasicTypes Methods ppr :: Boxity -> SDoc # pprPrec :: Rational -> Boxity -> SDoc #
Outputable TopLevelFlag # |
Instance details Defined in BasicTypes Methods ppr :: TopLevelFlag -> SDoc # pprPrec :: Rational -> TopLevelFlag -> SDoc #
Outputable LexicalFixity # |
Instance details Defined in BasicTypes Methods ppr :: LexicalFixity -> SDoc # pprPrec :: Rational -> LexicalFixity -> SDoc #
Outputable FixityDirection # |
Instance details Defined in BasicTypes Methods ppr :: FixityDirection -> SDoc # pprPrec :: Rational -> FixityDirection -> SDoc #
Outputable Fixity # |
Instance details Defined in BasicTypes Methods ppr :: Fixity -> SDoc # pprPrec :: Rational -> Fixity -> SDoc #
Outputable WarningTxt # |
Instance details Defined in BasicTypes Methods ppr :: WarningTxt -> SDoc # pprPrec :: Rational -> WarningTxt -> SDoc #
Outputable StringLiteral # |
Instance details Defined in BasicTypes Methods ppr :: StringLiteral -> SDoc # pprPrec :: Rational -> StringLiteral -> SDoc #
Outputable FunctionOrData # |
Instance details Defined in BasicTypes Methods ppr :: FunctionOrData -> SDoc # pprPrec :: Rational -> FunctionOrData -> SDoc #
Outputable SwapFlag # |
Instance details Defined in BasicTypes Methods ppr :: SwapFlag -> SDoc # pprPrec :: Rational -> SwapFlag -> SDoc #
Outputable OneShotInfo # |
Instance details Defined in BasicTypes Methods ppr :: OneShotInfo -> SDoc # pprPrec :: Rational -> OneShotInfo -> SDoc #
Outputable Alignment # |
Instance details Defined in BasicTypes Methods ppr :: Alignment -> SDoc # pprPrec :: Rational -> Alignment -> SDoc #
Outputable LeftOrRight # |
Instance details Defined in BasicTypes Methods ppr :: LeftOrRight -> SDoc # pprPrec :: Rational -> LeftOrRight -> SDoc #
Outputable Unique # |
Instance details Defined in Unique Methods ppr :: Unique -> SDoc # pprPrec :: Rational -> Unique -> SDoc #
Outputable RegClass # |
Instance details Defined in RegClass Methods ppr :: RegClass -> SDoc # pprPrec :: Rational -> RegClass -> SDoc #
Outputable Reg # | Print a reg in a generic manner If you want the architecture specific names, then use the pprReg function from the appropriate Ppr module.
Instance details Defined in Reg Methods ppr :: Reg -> SDoc # pprPrec :: Rational -> Reg -> SDoc #
Outputable RealReg # |
Instance details Defined in Reg Methods ppr :: RealReg -> SDoc # pprPrec :: Rational -> RealReg -> SDoc #
Outputable VirtualReg # |
Instance details Defined in Reg Methods ppr :: VirtualReg -> SDoc # pprPrec :: Rational -> VirtualReg -> SDoc #
Outputable PrimRep # |
Instance details Defined in TyCon Methods ppr :: PrimRep -> SDoc # pprPrec :: Rational -> PrimRep -> SDoc #
Outputable TyCon # |
Instance details Defined in TyCon Methods ppr :: TyCon -> SDoc # pprPrec :: Rational -> TyCon -> SDoc #
Outputable DefUnitId # |
Instance details Defined in Module Methods ppr :: DefUnitId -> SDoc # pprPrec :: Rational -> DefUnitId -> SDoc #
Outputable InstalledModule # |
Instance details Defined in Module Methods ppr :: InstalledModule -> SDoc # pprPrec :: Rational -> InstalledModule -> SDoc #
Outputable IndefModule # |
Instance details Defined in Module Methods ppr :: IndefModule -> SDoc # pprPrec :: Rational -> IndefModule -> SDoc #
Outputable IndefUnitId # |
Instance details Defined in Module Methods ppr :: IndefUnitId -> SDoc # pprPrec :: Rational -> IndefUnitId -> SDoc #
Outputable ModLocation # |
Instance details Defined in Module Methods ppr :: ModLocation -> SDoc # pprPrec :: Rational -> ModLocation -> SDoc #
Outputable PackageName # |
Instance details Defined in PackageConfig Methods ppr :: PackageName -> SDoc # pprPrec :: Rational -> PackageName -> SDoc #
Outputable SourcePackageId # |
Instance details Defined in PackageConfig Methods ppr :: SourcePackageId -> SDoc # pprPrec :: Rational -> SourcePackageId -> SDoc #
Outputable CType # |
Instance details Defined in ForeignCall Methods ppr :: CType -> SDoc # pprPrec :: Rational -> CType -> SDoc #
Outputable Header # |
Instance details Defined in ForeignCall Methods ppr :: Header -> SDoc # pprPrec :: Rational -> Header -> SDoc #
Outputable CCallConv # |
Instance details Defined in ForeignCall Methods ppr :: CCallConv -> SDoc # pprPrec :: Rational -> CCallConv -> SDoc #
Outputable CCallSpec # |
Instance details Defined in ForeignCall Methods ppr :: CCallSpec -> SDoc # pprPrec :: Rational -> CCallSpec -> SDoc #
Outputable CExportSpec # |
Instance details Defined in ForeignCall Methods ppr :: CExportSpec -> SDoc # pprPrec :: Rational -> CExportSpec -> SDoc #
Outputable Safety # |
Instance details Defined in ForeignCall Methods ppr :: Safety -> SDoc # pprPrec :: Rational -> Safety -> SDoc #
Outputable ForeignCall # |
Instance details Defined in ForeignCall Methods ppr :: ForeignCall -> SDoc # pprPrec :: Rational -> ForeignCall -> SDoc #
Outputable Phase # |
Instance details Defined in DriverPhases Methods ppr :: Phase -> SDoc # pprPrec :: Rational -> Phase -> SDoc #
Outputable EdgeType # |
Instance details Defined in Digraph Methods ppr :: EdgeType -> SDoc # pprPrec :: Rational -> EdgeType -> SDoc #
Outputable WarnReason # |
Instance details Defined in CmdLineParser Methods ppr :: WarnReason -> SDoc # pprPrec :: Rational -> WarnReason -> SDoc #
Outputable PackageFlag # |
Instance details Defined in DynFlags Methods ppr :: PackageFlag -> SDoc # pprPrec :: Rational -> PackageFlag -> SDoc #
Outputable ModRenaming # |
Instance details Defined in DynFlags Methods ppr :: ModRenaming -> SDoc # pprPrec :: Rational -> ModRenaming -> SDoc #
Outputable PackageArg # |
Instance details Defined in DynFlags Methods ppr :: PackageArg -> SDoc # pprPrec :: Rational -> PackageArg -> SDoc #
Outputable GhcMode # |
Instance details Defined in DynFlags Methods ppr :: GhcMode -> SDoc # pprPrec :: Rational -> GhcMode -> SDoc #
Outputable SafeHaskellMode # |
Instance details Defined in DynFlags Methods ppr :: SafeHaskellMode -> SDoc # pprPrec :: Rational -> SafeHaskellMode -> SDoc #
Outputable Language # |
Instance details Defined in DynFlags Methods ppr :: Language -> SDoc # pprPrec :: Rational -> Language -> SDoc #
Outputable WarnReason # |
Instance details Defined in DynFlags Methods ppr :: WarnReason -> SDoc # pprPrec :: Rational -> WarnReason -> SDoc #
Outputable ArgDescr # |
Instance details Defined in SMRep Methods ppr :: ArgDescr -> SDoc # pprPrec :: Rational -> ArgDescr -> SDoc #
Outputable ClosureTypeInfo # |
Instance details Defined in SMRep Methods ppr :: ClosureTypeInfo -> SDoc # pprPrec :: Rational -> ClosureTypeInfo -> SDoc #
Outputable SMRep # |
Instance details Defined in SMRep Methods ppr :: SMRep -> SDoc # pprPrec :: Rational -> SMRep -> SDoc #
Outputable StgHalfWord # |
Instance details Defined in SMRep Methods ppr :: StgHalfWord -> SDoc # pprPrec :: Rational -> StgHalfWord -> SDoc #
Outputable StgWord # |
Instance details Defined in SMRep Methods ppr :: StgWord -> SDoc # pprPrec :: Rational -> StgWord -> SDoc #
Outputable CoreToDo # |
Instance details Defined in CoreMonad Methods ppr :: CoreToDo -> SDoc # pprPrec :: Rational -> CoreToDo -> SDoc #
Outputable ForeignHint # |
Instance details Defined in PprCmmDecl Methods ppr :: ForeignHint -> SDoc # pprPrec :: Rational -> ForeignHint -> SDoc #
Outputable Width # |
Instance details Defined in CmmType Methods ppr :: Width -> SDoc # pprPrec :: Rational -> Width -> SDoc #
Outputable CmmType # |
Instance details Defined in CmmType Methods ppr :: CmmType -> SDoc # pprPrec :: Rational -> CmmType -> SDoc #
Outputable Var # |
Instance details Defined in Var Methods ppr :: Var -> SDoc # pprPrec :: Rational -> Var -> SDoc #
Outputable AnonArgFlag # |
Instance details Defined in Var Methods ppr :: AnonArgFlag -> SDoc # pprPrec :: Rational -> AnonArgFlag -> SDoc #
Outputable ArgFlag # |
Instance details Defined in Var Methods ppr :: ArgFlag -> SDoc # pprPrec :: Rational -> ArgFlag -> SDoc #
Outputable MCoercion # |
Instance details Defined in TyCoRep Methods ppr :: MCoercion -> SDoc # pprPrec :: Rational -> MCoercion -> SDoc #
Outputable TyCoBinder # |
Instance details Defined in TyCoRep Methods ppr :: TyCoBinder -> SDoc # pprPrec :: Rational -> TyCoBinder -> SDoc #
Outputable TyLit # |
Instance details Defined in TyCoRep Methods ppr :: TyLit -> SDoc # pprPrec :: Rational -> TyLit -> SDoc #
Outputable UnivCoProvenance # |
Instance details Defined in TyCoRep Methods ppr :: UnivCoProvenance -> SDoc # pprPrec :: Rational -> UnivCoProvenance -> SDoc #
Outputable Coercion # |
Instance details Defined in TyCoRep Methods ppr :: Coercion -> SDoc # pprPrec :: Rational -> Coercion -> SDoc #
Outputable TyThing # |
Instance details Defined in TyCoRep Methods ppr :: TyThing -> SDoc # pprPrec :: Rational -> TyThing -> SDoc #
Outputable Type # |
Instance details Defined in TyCoRep Methods ppr :: Type -> SDoc # pprPrec :: Rational -> Type -> SDoc #
Outputable TcTyVarDetails # |
Instance details Defined in TcType Methods ppr :: TcTyVarDetails -> SDoc # pprPrec :: Rational -> TcTyVarDetails -> SDoc #
Outputable MetaDetails # |
Instance details Defined in TcType Methods ppr :: MetaDetails -> SDoc # pprPrec :: Rational -> MetaDetails -> SDoc #
Outputable UnusablePackageReason # |
Instance details Defined in Packages Methods ppr :: UnusablePackageReason -> SDoc # pprPrec :: Rational -> UnusablePackageReason -> SDoc #
Outputable ModuleOrigin # |
Instance details Defined in Packages Methods ppr :: ModuleOrigin -> SDoc # pprPrec :: Rational -> ModuleOrigin -> SDoc #
Outputable ArgDocMap # |
Instance details Defined in GHC.Hs.Doc Methods ppr :: ArgDocMap -> SDoc # pprPrec :: Rational -> ArgDocMap -> SDoc #
Outputable DeclDocMap # |
Instance details Defined in GHC.Hs.Doc Methods ppr :: DeclDocMap -> SDoc # pprPrec :: Rational -> DeclDocMap -> SDoc #
Outputable HsDocString # |
Instance details Defined in GHC.Hs.Doc Methods ppr :: HsDocString -> SDoc # pprPrec :: Rational -> HsDocString -> SDoc #
Outputable AvailInfo # |
Instance details Defined in Avail Methods ppr :: AvailInfo -> SDoc # pprPrec :: Rational -> AvailInfo -> SDoc #
Outputable ImportSpec # |
Instance details Defined in RdrName Methods ppr :: ImportSpec -> SDoc # pprPrec :: Rational -> ImportSpec -> SDoc #
Outputable Parent # |
Instance details Defined in RdrName Methods ppr :: Parent -> SDoc # pprPrec :: Rational -> Parent -> SDoc #
Outputable GlobalRdrElt # |
Instance details Defined in RdrName Methods ppr :: GlobalRdrElt -> SDoc # pprPrec :: Rational -> GlobalRdrElt -> SDoc #
Outputable LocalRdrEnv # |
Instance details Defined in RdrName Methods ppr :: LocalRdrEnv -> SDoc # pprPrec :: Rational -> LocalRdrEnv -> SDoc #
Outputable RdrName # |
Instance details Defined in RdrName Methods ppr :: RdrName -> SDoc # pprPrec :: Rational -> RdrName -> SDoc #
Outputable AnnotationComment # |
Instance details Defined in ApiAnnotation Methods ppr :: AnnotationComment -> SDoc # pprPrec :: Rational -> AnnotationComment -> SDoc #
Outputable AnnKeywordId # |
Instance details Defined in ApiAnnotation Methods ppr :: AnnKeywordId -> SDoc # pprPrec :: Rational -> AnnKeywordId -> SDoc #
Outputable Token # |
Instance details Defined in Lexer Methods ppr :: Token -> SDoc # pprPrec :: Rational -> Token -> SDoc #
Outputable Annotation # |
Instance details Defined in Annotations Methods ppr :: Annotation -> SDoc # pprPrec :: Rational -> Annotation -> SDoc #
Outputable ForallVisFlag # |
Instance details Defined in Var Methods ppr :: ForallVisFlag -> SDoc # pprPrec :: Rational -> ForallVisFlag -> SDoc #
Outputable PatSyn # |
Instance details Defined in PatSyn Methods ppr :: PatSyn -> SDoc # pprPrec :: Rational -> PatSyn -> SDoc #
Outputable IfaceBndr # |
Instance details Defined in IfaceType Methods ppr :: IfaceBndr -> SDoc # pprPrec :: Rational -> IfaceBndr -> SDoc #
Outputable IfaceCoercion # |
Instance details Defined in IfaceType Methods ppr :: IfaceCoercion -> SDoc # pprPrec :: Rational -> IfaceCoercion -> SDoc #
Outputable IfaceTyLit # |
Instance details Defined in IfaceType Methods ppr :: IfaceTyLit -> SDoc # pprPrec :: Rational -> IfaceTyLit -> SDoc #
Outputable IfaceTyCon # |
Instance details Defined in IfaceType Methods ppr :: IfaceTyCon -> SDoc # pprPrec :: Rational -> IfaceTyCon -> SDoc #
Outputable IfaceType # |
Instance details Defined in IfaceType Methods ppr :: IfaceType -> SDoc # pprPrec :: Rational -> IfaceType -> SDoc #
Outputable IfaceAppArgs # |
Instance details Defined in IfaceType Methods ppr :: IfaceAppArgs -> SDoc # pprPrec :: Rational -> IfaceAppArgs -> SDoc #
Outputable NoExtCon # |
Instance details Defined in GHC.Hs.Extension Methods ppr :: NoExtCon -> SDoc # pprPrec :: Rational -> NoExtCon -> SDoc #
Outputable NoExtField # |
Instance details Defined in GHC.Hs.Extension Methods ppr :: NoExtField -> SDoc # pprPrec :: Rational -> NoExtField -> SDoc #
Outputable EqSpec # |
Instance details Defined in DataCon Methods ppr :: EqSpec -> SDoc # pprPrec :: Rational -> EqSpec -> SDoc #
Outputable DataCon # |
Instance details Defined in DataCon Methods ppr :: DataCon -> SDoc # pprPrec :: Rational -> DataCon -> SDoc #
Outputable ConLike # |
Instance details Defined in ConLike Methods ppr :: ConLike -> SDoc # pprPrec :: Rational -> ConLike -> SDoc #
Outputable CostCentreStack # |
Instance details Defined in CostCentre Methods ppr :: CostCentreStack -> SDoc # pprPrec :: Rational -> CostCentreStack -> SDoc #
Outputable CostCentre # |
Instance details Defined in CostCentre Methods ppr :: CostCentre -> SDoc # pprPrec :: Rational -> CostCentre -> SDoc #
Outputable CoAxiomRule # |
Instance details Defined in CoAxiom Methods ppr :: CoAxiomRule -> SDoc # pprPrec :: Rational -> CoAxiomRule -> SDoc #
Outputable Role # |
Instance details Defined in CoAxiom Methods ppr :: Role -> SDoc # pprPrec :: Rational -> Role -> SDoc #
Outputable CoAxBranch # |
Instance details Defined in CoAxiom Methods ppr :: CoAxBranch -> SDoc # pprPrec :: Rational -> CoAxBranch -> SDoc #
Outputable LiftingContext # |
Instance details Defined in Coercion Methods ppr :: LiftingContext -> SDoc # pprPrec :: Rational -> LiftingContext -> SDoc #
Outputable Class # |
Instance details Defined in Class Methods ppr :: Class -> SDoc # pprPrec :: Rational -> Class -> SDoc #
Outputable InScopeSet # |
Instance details Defined in VarEnv Methods ppr :: InScopeSet -> SDoc # pprPrec :: Rational -> InScopeSet -> SDoc #
Outputable TyConFlavour # |
Instance details Defined in TyCon Methods ppr :: TyConFlavour -> SDoc # pprPrec :: Rational -> TyConFlavour -> SDoc #
Outputable PrimElemRep # |
Instance details Defined in TyCon Methods ppr :: PrimElemRep -> SDoc # pprPrec :: Rational -> PrimElemRep -> SDoc #
Outputable FamTyConFlav # |
Instance details Defined in TyCon Methods ppr :: FamTyConFlav -> SDoc # pprPrec :: Rational -> FamTyConFlav -> SDoc #
Outputable AlgTyConFlav # |
Instance details Defined in TyCon Methods ppr :: AlgTyConFlav -> SDoc # pprPrec :: Rational -> AlgTyConFlav -> SDoc #
Outputable TyConBndrVis # |
Instance details Defined in TyCon Methods ppr :: TyConBndrVis -> SDoc # pprPrec :: Rational -> TyConBndrVis -> SDoc #
Outputable Scope # |
Instance details Defined in HieTypes Methods ppr :: Scope -> SDoc # pprPrec :: Rational -> Scope -> SDoc #
Outputable ContextInfo # |
Instance details Defined in HieTypes Methods ppr :: ContextInfo -> SDoc # pprPrec :: Rational -> ContextInfo -> SDoc #
Outputable CoercionHole # |
Instance details Defined in TyCoRep Methods ppr :: CoercionHole -> SDoc # pprPrec :: Rational -> CoercionHole -> SDoc #
Outputable TCvSubst # |
Instance details Defined in TyCoSubst Methods ppr :: TCvSubst -> SDoc # pprPrec :: Rational -> TCvSubst -> SDoc #
Outputable Literal # |
Instance details Defined in Literal Methods ppr :: Literal -> SDoc # pprPrec :: Rational -> Literal -> SDoc #
Outputable LabelSet # |
Instance details Defined in Hoopl.Label Methods ppr :: LabelSet -> SDoc # pprPrec :: Rational -> LabelSet -> SDoc #
Outputable Label # |
Instance details Defined in Hoopl.Label Methods ppr :: Label -> SDoc # pprPrec :: Rational -> Label -> SDoc #
Outputable OverLitVal # |
Instance details Defined in GHC.Hs.Lit Methods ppr :: OverLitVal -> SDoc # pprPrec :: Rational -> OverLitVal -> SDoc #
Outputable EqRel # |
Instance details Defined in Predicate Methods ppr :: EqRel -> SDoc # pprPrec :: Rational -> EqRel -> SDoc #
Outputable StrictnessMark # |
Instance details Defined in DataCon Methods ppr :: StrictnessMark -> SDoc # pprPrec :: Rational -> StrictnessMark -> SDoc #
Outputable SrcUnpackedness # |
Instance details Defined in DataCon Methods ppr :: SrcUnpackedness -> SDoc # pprPrec :: Rational -> SrcUnpackedness -> SDoc #
Outputable SrcStrictness # |
Instance details Defined in DataCon Methods ppr :: SrcStrictness -> SDoc # pprPrec :: Rational -> SrcStrictness -> SDoc #
Outputable HsImplBang # |
Instance details Defined in DataCon Methods ppr :: HsImplBang -> SDoc # pprPrec :: Rational -> HsImplBang -> SDoc #
Outputable HsSrcBang # |
Instance details Defined in DataCon Methods ppr :: HsSrcBang -> SDoc # pprPrec :: Rational -> HsSrcBang -> SDoc #
Outputable SlotTy # |
Instance details Defined in RepType Methods ppr :: SlotTy -> SDoc # pprPrec :: Rational -> SlotTy -> SDoc #
Outputable StrictSig # |
Instance details Defined in Demand Methods ppr :: StrictSig -> SDoc # pprPrec :: Rational -> StrictSig -> SDoc #
Outputable DmdType # |
Instance details Defined in Demand Methods ppr :: DmdType -> SDoc # pprPrec :: Rational -> DmdType -> SDoc #
Outputable CPRResult # |
Instance details Defined in Demand Methods ppr :: CPRResult -> SDoc # pprPrec :: Rational -> CPRResult -> SDoc #
Outputable TypeShape # |
Instance details Defined in Demand Methods ppr :: TypeShape -> SDoc # pprPrec :: Rational -> TypeShape -> SDoc #
Outputable Count # |
Instance details Defined in Demand Methods ppr :: Count -> SDoc # pprPrec :: Rational -> Count -> SDoc #
Outputable UseDmd # |
Instance details Defined in Demand Methods ppr :: UseDmd -> SDoc # pprPrec :: Rational -> UseDmd -> SDoc #
Outputable StrDmd # |
Instance details Defined in Demand Methods ppr :: StrDmd -> SDoc # pprPrec :: Rational -> StrDmd -> SDoc #
Outputable UnfoldingGuidance # |
Instance details Defined in PprCore Methods ppr :: UnfoldingGuidance -> SDoc # pprPrec :: Rational -> UnfoldingGuidance -> SDoc #
Outputable UnfoldingSource # |
Instance details Defined in PprCore Methods ppr :: UnfoldingSource -> SDoc # pprPrec :: Rational -> UnfoldingSource -> SDoc #
Outputable Unfolding # |
Instance details Defined in PprCore Methods ppr :: Unfolding -> SDoc # pprPrec :: Rational -> Unfolding -> SDoc #
Outputable CoreRule # |
Instance details Defined in PprCore Methods ppr :: CoreRule -> SDoc # pprPrec :: Rational -> CoreRule -> SDoc #
Outputable AltCon # |
Instance details Defined in CoreSyn Methods ppr :: AltCon -> SDoc # pprPrec :: Rational -> AltCon -> SDoc #
Outputable LevityInfo # |
Instance details Defined in IdInfo Methods ppr :: LevityInfo -> SDoc # pprPrec :: Rational -> LevityInfo -> SDoc #
Outputable TickBoxOp # |
Instance details Defined in IdInfo Methods ppr :: TickBoxOp -> SDoc # pprPrec :: Rational -> TickBoxOp -> SDoc #
Outputable CafInfo # |
Instance details Defined in IdInfo Methods ppr :: CafInfo -> SDoc # pprPrec :: Rational -> CafInfo -> SDoc #
Outputable RecSelParent # |
Instance details Defined in IdInfo Methods ppr :: RecSelParent -> SDoc # pprPrec :: Rational -> RecSelParent -> SDoc #
Outputable UnVarGraph # |
Instance details Defined in UnVarGraph Methods ppr :: UnVarGraph -> SDoc # pprPrec :: Rational -> UnVarGraph -> SDoc #
Outputable UnVarSet # |
Instance details Defined in UnVarGraph Methods ppr :: UnVarSet -> SDoc # pprPrec :: Rational -> UnVarSet -> SDoc #
Outputable ShowHowMuch # |
Instance details Defined in IfaceSyn Methods ppr :: ShowHowMuch -> SDoc # pprPrec :: Rational -> ShowHowMuch -> SDoc #
Outputable IfaceJoinInfo # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceJoinInfo -> SDoc # pprPrec :: Rational -> IfaceJoinInfo -> SDoc #
Outputable IfaceConAlt # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceConAlt -> SDoc # pprPrec :: Rational -> IfaceConAlt -> SDoc #
Outputable IfaceExpr # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceExpr -> SDoc # pprPrec :: Rational -> IfaceExpr -> SDoc #
Outputable IfaceIdDetails # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceIdDetails -> SDoc # pprPrec :: Rational -> IfaceIdDetails -> SDoc #
Outputable IfaceUnfolding # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceUnfolding -> SDoc # pprPrec :: Rational -> IfaceUnfolding -> SDoc #
Outputable IfaceInfoItem # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceInfoItem -> SDoc # pprPrec :: Rational -> IfaceInfoItem -> SDoc #
Outputable IfaceIdInfo # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceIdInfo -> SDoc # pprPrec :: Rational -> IfaceIdInfo -> SDoc #
Outputable IfaceCompleteMatch # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceCompleteMatch -> SDoc # pprPrec :: Rational -> IfaceCompleteMatch -> SDoc #
Outputable IfaceAnnotation # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceAnnotation -> SDoc # pprPrec :: Rational -> IfaceAnnotation -> SDoc #
Outputable IfaceRule # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceRule -> SDoc # pprPrec :: Rational -> IfaceRule -> SDoc #
Outputable IfaceFamInst # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceFamInst -> SDoc # pprPrec :: Rational -> IfaceFamInst -> SDoc #
Outputable IfaceClsInst # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceClsInst -> SDoc # pprPrec :: Rational -> IfaceClsInst -> SDoc #
Outputable IfaceAT # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceAT -> SDoc # pprPrec :: Rational -> IfaceAT -> SDoc #
Outputable IfaceClassOp # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceClassOp -> SDoc # pprPrec :: Rational -> IfaceClassOp -> SDoc #
Outputable IfaceTyConParent # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceTyConParent -> SDoc # pprPrec :: Rational -> IfaceTyConParent -> SDoc #
Outputable IfaceDecl # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceDecl -> SDoc # pprPrec :: Rational -> IfaceDecl -> SDoc #
Outputable PrimCall # |
Instance details Defined in PrimOp Methods ppr :: PrimCall -> SDoc # pprPrec :: Rational -> PrimCall -> SDoc #
Outputable HsTyLit # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsTyLit -> SDoc # pprPrec :: Rational -> HsTyLit -> SDoc #
Outputable NewHsTypeX # |
Instance details Defined in GHC.Hs.Types Methods ppr :: NewHsTypeX -> SDoc # pprPrec :: Rational -> NewHsTypeX -> SDoc #
Outputable HsIPName # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsIPName -> SDoc # pprPrec :: Rational -> HsIPName -> SDoc #
Outputable CgBreakInfo # |
Instance details Defined in ByteCodeTypes Methods ppr :: CgBreakInfo -> SDoc # pprPrec :: Rational -> CgBreakInfo -> SDoc #
Outputable UnlinkedBCO # |
Instance details Defined in ByteCodeTypes Methods ppr :: UnlinkedBCO -> SDoc # pprPrec :: Rational -> UnlinkedBCO -> SDoc #
Outputable CompiledByteCode # |
Instance details Defined in ByteCodeTypes Methods ppr :: CompiledByteCode -> SDoc # pprPrec :: Rational -> CompiledByteCode -> SDoc #
Outputable SptEntry # |
Instance details Defined in LinkerTypes Methods ppr :: SptEntry -> SDoc # pprPrec :: Rational -> SptEntry -> SDoc #
Outputable Unlinked # |
Instance details Defined in LinkerTypes Methods ppr :: Unlinked -> SDoc # pprPrec :: Rational -> Unlinked -> SDoc #
Outputable Linkable # |
Instance details Defined in LinkerTypes Methods ppr :: Linkable -> SDoc # pprPrec :: Rational -> Linkable -> SDoc #
Outputable CoreStats # |
Instance details Defined in CoreStats Methods ppr :: CoreStats -> SDoc # pprPrec :: Rational -> CoreStats -> SDoc #
Outputable UpdateFlag # |
Instance details Defined in StgSyn Methods ppr :: UpdateFlag -> SDoc # pprPrec :: Rational -> UpdateFlag -> SDoc #
Outputable AltType # |
Instance details Defined in StgSyn Methods ppr :: AltType -> SDoc # pprPrec :: Rational -> AltType -> SDoc #
Outputable NoExtFieldSilent # |
Instance details Defined in StgSyn Methods ppr :: NoExtFieldSilent -> SDoc # pprPrec :: Rational -> NoExtFieldSilent -> SDoc #
Outputable StgArg # |
Instance details Defined in StgSyn Methods ppr :: StgArg -> SDoc # pprPrec :: Rational -> StgArg -> SDoc #
Outputable FloatLang # |
Instance details Defined in StgLiftLams.LiftM Methods ppr :: FloatLang -> SDoc # pprPrec :: Rational -> FloatLang -> SDoc #
Outputable ForeignLabelSource # |
Instance details Defined in CLabel Methods ppr :: ForeignLabelSource -> SDoc # pprPrec :: Rational -> ForeignLabelSource -> SDoc #
Outputable CLabel # |
Instance details Defined in CLabel Methods ppr :: CLabel -> SDoc # pprPrec :: Rational -> CLabel -> SDoc #
Outputable GlobalReg # |
Instance details Defined in PprCmmExpr Methods ppr :: GlobalReg -> SDoc # pprPrec :: Rational -> GlobalReg -> SDoc #
Outputable LocalReg # |
Instance details Defined in PprCmmExpr Methods ppr :: LocalReg -> SDoc # pprPrec :: Rational -> LocalReg -> SDoc #
Outputable CmmLit # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmLit -> SDoc # pprPrec :: Rational -> CmmLit -> SDoc #
Outputable Area # |
Instance details Defined in PprCmmExpr Methods ppr :: Area -> SDoc # pprPrec :: Rational -> Area -> SDoc #
Outputable CmmReg # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmReg -> SDoc # pprPrec :: Rational -> CmmReg -> SDoc #
Outputable CmmExpr # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmExpr -> SDoc # pprPrec :: Rational -> CmmExpr -> SDoc #
Outputable CmmTickScope # |
Instance details Defined in CmmNode Methods ppr :: CmmTickScope -> SDoc # pprPrec :: Rational -> CmmTickScope -> SDoc #
Outputable ForeignTarget # |
Instance details Defined in PprCmm Methods ppr :: ForeignTarget -> SDoc # pprPrec :: Rational -> ForeignTarget -> SDoc #
Outputable CmmReturnInfo # |
Instance details Defined in PprCmm Methods ppr :: CmmReturnInfo -> SDoc # pprPrec :: Rational -> CmmReturnInfo -> SDoc #
Outputable ForeignConvention # |
Instance details Defined in PprCmm Methods ppr :: ForeignConvention -> SDoc # pprPrec :: Rational -> ForeignConvention -> SDoc #
Outputable Convention # |
Instance details Defined in PprCmm Methods ppr :: Convention -> SDoc # pprPrec :: Rational -> Convention -> SDoc #
Outputable CmmStatics # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmStatics -> SDoc # pprPrec :: Rational -> CmmStatics -> SDoc #
Outputable CmmStatic # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmStatic -> SDoc # pprPrec :: Rational -> CmmStatic -> SDoc #
Outputable CmmInfoTable # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmInfoTable -> SDoc # pprPrec :: Rational -> CmmInfoTable -> SDoc #
Outputable CmmStackInfo # |
Instance details Defined in PprCmm Methods ppr :: CmmStackInfo -> SDoc # pprPrec :: Rational -> CmmStackInfo -> SDoc #
Outputable CmmTopInfo # |
Instance details Defined in PprCmm Methods ppr :: CmmTopInfo -> SDoc # pprPrec :: Rational -> CmmTopInfo -> SDoc #
Outputable CmmGraph # |
Instance details Defined in PprCmm Methods ppr :: CmmGraph -> SDoc # pprPrec :: Rational -> CmmGraph -> SDoc #
Outputable LlvmCastOp # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCastOp -> SDoc # pprPrec :: Rational -> LlvmCastOp -> SDoc #
Outputable LlvmCmpOp # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCmpOp -> SDoc # pprPrec :: Rational -> LlvmCmpOp -> SDoc #
Outputable LlvmMachOp # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmMachOp -> SDoc # pprPrec :: Rational -> LlvmMachOp -> SDoc #
Outputable LlvmLinkageType # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmLinkageType -> SDoc # pprPrec :: Rational -> LlvmLinkageType -> SDoc #
Outputable LlvmCallConvention # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCallConvention -> SDoc # pprPrec :: Rational -> LlvmCallConvention -> SDoc #
Outputable LlvmFuncAttr # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmFuncAttr -> SDoc # pprPrec :: Rational -> LlvmFuncAttr -> SDoc #
Outputable LlvmParamAttr # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmParamAttr -> SDoc # pprPrec :: Rational -> LlvmParamAttr -> SDoc #
Outputable LlvmFunctionDecl # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmFunctionDecl -> SDoc # pprPrec :: Rational -> LlvmFunctionDecl -> SDoc #
Outputable LlvmStatic # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmStatic -> SDoc # pprPrec :: Rational -> LlvmStatic -> SDoc #
Outputable LlvmLit # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmLit -> SDoc # pprPrec :: Rational -> LlvmLit -> SDoc #
Outputable LlvmVar # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmVar -> SDoc # pprPrec :: Rational -> LlvmVar -> SDoc #
Outputable LlvmType # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmType -> SDoc # pprPrec :: Rational -> LlvmType -> SDoc #
Outputable MetaExpr # |
Instance details Defined in Llvm.MetaData Methods ppr :: MetaExpr -> SDoc # pprPrec :: Rational -> MetaExpr -> SDoc #
Outputable MetaId # |
Instance details Defined in Llvm.MetaData Methods ppr :: MetaId -> SDoc # pprPrec :: Rational -> MetaId -> SDoc #
Outputable UnwindExpr # |
Instance details Defined in Debug Methods ppr :: UnwindExpr -> SDoc # pprPrec :: Rational -> UnwindExpr -> SDoc #
Outputable UnwindPoint # |
Instance details Defined in Debug Methods ppr :: UnwindPoint -> SDoc # pprPrec :: Rational -> UnwindPoint -> SDoc #
Outputable DebugBlock # |
Instance details Defined in Debug Methods ppr :: DebugBlock -> SDoc # pprPrec :: Rational -> DebugBlock -> SDoc #
Outputable Status # |
Instance details Defined in CmmProcPoint Methods ppr :: Status -> SDoc # pprPrec :: Rational -> Status -> SDoc #
Outputable ParamLocation # |
Instance details Defined in CmmCallConv Methods ppr :: ParamLocation -> SDoc # pprPrec :: Rational -> ParamLocation -> SDoc #
Outputable EdgeInfo # |
Instance details Defined in CFG Methods ppr :: EdgeInfo -> SDoc # pprPrec :: Rational -> EdgeInfo -> SDoc #
Outputable CfgEdge # |
Instance details Defined in CFG Methods ppr :: CfgEdge -> SDoc # pprPrec :: Rational -> CfgEdge -> SDoc #
Outputable EdgeWeight # |
Instance details Defined in CFG Methods ppr :: EdgeWeight -> SDoc # pprPrec :: Rational -> EdgeWeight -> SDoc #
Outputable LiveInfo # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: LiveInfo -> SDoc # pprPrec :: Rational -> LiveInfo -> SDoc #
Outputable Loc # |
Instance details Defined in RegAlloc.Linear.Base Methods ppr :: Loc -> SDoc # pprPrec :: Rational -> Loc -> SDoc #
Outputable SpillStats # |
Instance details Defined in RegAlloc.Graph.Spill Methods ppr :: SpillStats -> SDoc # pprPrec :: Rational -> SpillStats -> SDoc #
Outputable FamInstMatch # |
Instance details Defined in FamInstEnv Methods ppr :: FamInstMatch -> SDoc # pprPrec :: Rational -> FamInstMatch -> SDoc #
Outputable FamInst # |
Instance details Defined in FamInstEnv Methods ppr :: FamInst -> SDoc # pprPrec :: Rational -> FamInst -> SDoc #
Outputable TcLevel # |
Instance details Defined in TcType Methods ppr :: TcLevel -> SDoc # pprPrec :: Rational -> TcLevel -> SDoc #
Outputable MetaInfo # |
Instance details Defined in TcType Methods ppr :: MetaInfo -> SDoc # pprPrec :: Rational -> MetaInfo -> SDoc #
Outputable InferResult # |
Instance details Defined in TcType Methods ppr :: InferResult -> SDoc # pprPrec :: Rational -> InferResult -> SDoc #
Outputable ExpType # |
Instance details Defined in TcType Methods ppr :: ExpType -> SDoc # pprPrec :: Rational -> ExpType -> SDoc #
Outputable ClsInst # |
Instance details Defined in InstEnv Methods ppr :: ClsInst -> SDoc # pprPrec :: Rational -> ClsInst -> SDoc #
Outputable CgLoc # |
Instance details Defined in GHC.StgToCmm.Closure Methods ppr :: CgLoc -> SDoc # pprPrec :: Rational -> CgLoc -> SDoc #
Outputable Sequel # |
Instance details Defined in GHC.StgToCmm.Monad Methods ppr :: Sequel -> SDoc # pprPrec :: Rational -> Sequel -> SDoc #
Outputable CgIdInfo # |
Instance details Defined in GHC.StgToCmm.Monad Methods ppr :: CgIdInfo -> SDoc # pprPrec :: Rational -> CgIdInfo -> SDoc #
Outputable ArgRep # |
Instance details Defined in GHC.StgToCmm.ArgRep Methods ppr :: ArgRep -> SDoc # pprPrec :: Rational -> ArgRep -> SDoc #
Outputable BinderInfo # |
Instance details Defined in StgLiftLams.Analysis Methods ppr :: BinderInfo -> SDoc # pprPrec :: Rational -> BinderInfo -> SDoc #
Outputable Skeleton # |
Instance details Defined in StgLiftLams.Analysis Methods ppr :: Skeleton -> SDoc # pprPrec :: Rational -> Skeleton -> SDoc #
Outputable ModuleSRTInfo # |
Instance details Defined in CmmBuildInfoTables Methods ppr :: ModuleSRTInfo -> SDoc # pprPrec :: Rational -> ModuleSRTInfo -> SDoc #
Outputable EvCallStack # |
Instance details Defined in TcEvidence Methods ppr :: EvCallStack -> SDoc # pprPrec :: Rational -> EvCallStack -> SDoc #
Outputable EvTypeable # |
Instance details Defined in TcEvidence Methods ppr :: EvTypeable -> SDoc # pprPrec :: Rational -> EvTypeable -> SDoc #
Outputable EvTerm # |
Instance details Defined in TcEvidence Methods ppr :: EvTerm -> SDoc # pprPrec :: Rational -> EvTerm -> SDoc #
Outputable EvBind # |
Instance details Defined in TcEvidence Methods ppr :: EvBind -> SDoc # pprPrec :: Rational -> EvBind -> SDoc #
Outputable EvBindMap # |
Instance details Defined in TcEvidence Methods ppr :: EvBindMap -> SDoc # pprPrec :: Rational -> EvBindMap -> SDoc #
Outputable EvBindsVar # |
Instance details Defined in TcEvidence Methods ppr :: EvBindsVar -> SDoc # pprPrec :: Rational -> EvBindsVar -> SDoc #
Outputable TcEvBinds # |
Instance details Defined in TcEvidence Methods ppr :: TcEvBinds -> SDoc # pprPrec :: Rational -> TcEvBinds -> SDoc #
Outputable HsWrapper # |
Instance details Defined in TcEvidence Methods ppr :: HsWrapper -> SDoc # pprPrec :: Rational -> HsWrapper -> SDoc #
Outputable TcSpecPrag # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: TcSpecPrag -> SDoc # pprPrec :: Rational -> TcSpecPrag -> SDoc #
Outputable DocDecl # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: DocDecl -> SDoc # pprPrec :: Rational -> DocDecl -> SDoc #
Outputable ForeignExport # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: ForeignExport -> SDoc # pprPrec :: Rational -> ForeignExport -> SDoc #
Outputable ForeignImport # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: ForeignImport -> SDoc # pprPrec :: Rational -> ForeignImport -> SDoc #
Outputable NewOrData # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: NewOrData -> SDoc # pprPrec :: Rational -> NewOrData -> SDoc #
Outputable PendingTcSplice # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: PendingTcSplice -> SDoc # pprPrec :: Rational -> PendingTcSplice -> SDoc #
Outputable PendingRnSplice # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: PendingRnSplice -> SDoc # pprPrec :: Rational -> PendingRnSplice -> SDoc #
Outputable SpliceDecoration # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: SpliceDecoration -> SDoc # pprPrec :: Rational -> SpliceDecoration -> SDoc #
Outputable UnboundVar # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: UnboundVar -> SDoc # pprPrec :: Rational -> UnboundVar -> SDoc #
Outputable CtOrigin # |
Instance details Defined in TcOrigin Methods ppr :: CtOrigin -> SDoc # pprPrec :: Rational -> CtOrigin -> SDoc #
Outputable SkolemInfo # |
Instance details Defined in TcOrigin Methods ppr :: SkolemInfo -> SDoc # pprPrec :: Rational -> SkolemInfo -> SDoc #
Outputable TyEl # |
Instance details Defined in RdrHsSyn Methods ppr :: TyEl -> SDoc # pprPrec :: Rational -> TyEl -> SDoc #
Outputable CompleteMatch # |
Instance details Defined in HscTypes Methods ppr :: CompleteMatch -> SDoc # pprPrec :: Rational -> CompleteMatch -> SDoc #
Outputable IfaceTrustInfo # |
Instance details Defined in HscTypes Methods ppr :: IfaceTrustInfo -> SDoc # pprPrec :: Rational -> IfaceTrustInfo -> SDoc #
Outputable ModSummary # |
Instance details Defined in HscTypes Methods ppr :: ModSummary -> SDoc # pprPrec :: Rational -> ModSummary -> SDoc #
Outputable FixItem # |
Instance details Defined in HscTypes Methods ppr :: FixItem -> SDoc # pprPrec :: Rational -> FixItem -> SDoc #
Outputable Warnings # |
Instance details Defined in LoadIface Methods ppr :: Warnings -> SDoc # pprPrec :: Rational -> Warnings -> SDoc #
Outputable InteractiveImport # |
Instance details Defined in HscTypes Methods ppr :: InteractiveImport -> SDoc # pprPrec :: Rational -> InteractiveImport -> SDoc #
Outputable TargetId # |
Instance details Defined in HscTypes Methods ppr :: TargetId -> SDoc # pprPrec :: Rational -> TargetId -> SDoc #
Outputable Target # |
Instance details Defined in HscTypes Methods ppr :: Target -> SDoc # pprPrec :: Rational -> Target -> SDoc #
Outputable PhasePlus # |
Instance details Defined in PipelineMonad Methods ppr :: PhasePlus -> SDoc # pprPrec :: Rational -> PhasePlus -> SDoc #
Outputable Tick # |
Instance details Defined in CoreMonad Methods ppr :: Tick -> SDoc # pprPrec :: Rational -> Tick -> SDoc #
Outputable FloatOutSwitches # |
Instance details Defined in CoreMonad Methods ppr :: FloatOutSwitches -> SDoc # pprPrec :: Rational -> FloatOutSwitches -> SDoc #
Outputable SimplMode # |
Instance details Defined in CoreMonad Methods ppr :: SimplMode -> SDoc # pprPrec :: Rational -> SimplMode -> SDoc #
Outputable HsComponentId # |
Instance details Defined in BkpSyn Methods ppr :: HsComponentId -> SDoc # pprPrec :: Rational -> HsComponentId -> SDoc #
Outputable FloatBind # |
Instance details Defined in MkCore Methods ppr :: FloatBind -> SDoc # pprPrec :: Rational -> FloatBind -> SDoc #
Outputable LetFloats # |
Instance details Defined in SimplEnv Methods ppr :: LetFloats -> SDoc # pprPrec :: Rational -> LetFloats -> SDoc #
Outputable SimplSR # |
Instance details Defined in SimplEnv Methods ppr :: SimplSR -> SDoc # pprPrec :: Rational -> SimplSR -> SDoc #
Outputable SimplFloats # |
Instance details Defined in SimplEnv Methods ppr :: SimplFloats -> SDoc # pprPrec :: Rational -> SimplFloats -> SDoc #
Outputable TyState # | Not user-facing.
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: TyState -> SDoc # pprPrec :: Rational -> TyState -> SDoc #
Outputable VarInfo # | Not user-facing.
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: VarInfo -> SDoc # pprPrec :: Rational -> VarInfo -> SDoc #
Outputable TmState # | Not user-facing.
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: TmState -> SDoc # pprPrec :: Rational -> TmState -> SDoc #
Outputable PossibleMatches # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: PossibleMatches -> SDoc # pprPrec :: Rational -> PossibleMatches -> SDoc #
Outputable PmAltCon # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: PmAltCon -> SDoc # pprPrec :: Rational -> PmAltCon -> SDoc #
Outputable PmEquality # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: PmEquality -> SDoc # pprPrec :: Rational -> PmEquality -> SDoc #
Outputable PmLitValue # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: PmLitValue -> SDoc # pprPrec :: Rational -> PmLitValue -> SDoc #
Outputable PmLit # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: PmLit -> SDoc # pprPrec :: Rational -> PmLit -> SDoc #
Outputable Subst # |
Instance details Defined in CoreSubst Methods ppr :: Subst -> SDoc # pprPrec :: Rational -> Subst -> SDoc #
Outputable FloatSpec # |
Instance details Defined in SetLevels Methods ppr :: FloatSpec -> SDoc # pprPrec :: Rational -> FloatSpec -> SDoc #
Outputable Level # |
Instance details Defined in SetLevels Methods ppr :: Level -> SDoc # pprPrec :: Rational -> Level -> SDoc #
Outputable CallCtxt # |
Instance details Defined in CoreUnfold Methods ppr :: CallCtxt -> SDoc # pprPrec :: Rational -> CallCtxt -> SDoc #
Outputable ArgSummary # |
Instance details Defined in CoreUnfold Methods ppr :: ArgSummary -> SDoc # pprPrec :: Rational -> ArgSummary -> SDoc #
Outputable ArgSpec # |
Instance details Defined in SimplUtils Methods ppr :: ArgSpec -> SDoc # pprPrec :: Rational -> ArgSpec -> SDoc #
Outputable ArgInfo # |
Instance details Defined in SimplUtils Methods ppr :: ArgInfo -> SDoc # pprPrec :: Rational -> ArgInfo -> SDoc #
Outputable DupFlag # |
Instance details Defined in SimplUtils Methods ppr :: DupFlag -> SDoc # pprPrec :: Rational -> DupFlag -> SDoc #
Outputable SimplCont # |
Instance details Defined in SimplUtils Methods ppr :: SimplCont -> SDoc # pprPrec :: Rational -> SimplCont -> SDoc #
Outputable SubGoalDepth # |
Instance details Defined in Constraint Methods ppr :: SubGoalDepth -> SDoc # pprPrec :: Rational -> SubGoalDepth -> SDoc #
Outputable CtFlavour # |
Instance details Defined in Constraint Methods ppr :: CtFlavour -> SDoc # pprPrec :: Rational -> CtFlavour -> SDoc #
Outputable CtEvidence # |
Instance details Defined in Constraint Methods ppr :: CtEvidence -> SDoc # pprPrec :: Rational -> CtEvidence -> SDoc #
Outputable TcEvDest # |
Instance details Defined in Constraint Methods ppr :: TcEvDest -> SDoc # pprPrec :: Rational -> TcEvDest -> SDoc #
Outputable ImplicStatus # |
Instance details Defined in Constraint Methods ppr :: ImplicStatus -> SDoc # pprPrec :: Rational -> ImplicStatus -> SDoc #
Outputable Implication # |
Instance details Defined in Constraint Methods ppr :: Implication -> SDoc # pprPrec :: Rational -> Implication -> SDoc #
Outputable WantedConstraints # |
Instance details Defined in Constraint Methods ppr :: WantedConstraints -> SDoc # pprPrec :: Rational -> WantedConstraints -> SDoc #
Outputable Hole # |
Instance details Defined in Constraint Methods ppr :: Hole -> SDoc # pprPrec :: Rational -> Hole -> SDoc #
Outputable QCInst # |
Instance details Defined in Constraint Methods ppr :: QCInst -> SDoc # pprPrec :: Rational -> QCInst -> SDoc #
Outputable Ct # |
Instance details Defined in Constraint Methods ppr :: Ct -> SDoc # pprPrec :: Rational -> Ct -> SDoc #
Outputable TcPatSynInfo # |
Instance details Defined in TcRnTypes Methods ppr :: TcPatSynInfo -> SDoc # pprPrec :: Rational -> TcPatSynInfo -> SDoc #
Outputable TcIdSigInst # |
Instance details Defined in TcRnTypes Methods ppr :: TcIdSigInst -> SDoc # pprPrec :: Rational -> TcIdSigInst -> SDoc #
Outputable TcIdSigInfo # |
Instance details Defined in TcRnTypes Methods ppr :: TcIdSigInfo -> SDoc # pprPrec :: Rational -> TcIdSigInfo -> SDoc #
Outputable TcSigInfo # |
Instance details Defined in TcRnTypes Methods ppr :: TcSigInfo -> SDoc # pprPrec :: Rational -> TcSigInfo -> SDoc #
Outputable WhereFrom # |
Instance details Defined in TcRnTypes Methods ppr :: WhereFrom -> SDoc # pprPrec :: Rational -> WhereFrom -> SDoc #
Outputable IdBindingInfo # |
Instance details Defined in TcRnTypes Methods ppr :: IdBindingInfo -> SDoc # pprPrec :: Rational -> IdBindingInfo -> SDoc #
Outputable PromotionErr # |
Instance details Defined in TcRnTypes Methods ppr :: PromotionErr -> SDoc # pprPrec :: Rational -> PromotionErr -> SDoc #
Outputable TcTyThing # |
Instance details Defined in TcRnTypes Methods ppr :: TcTyThing -> SDoc # pprPrec :: Rational -> TcTyThing -> SDoc #
Outputable ThStage # |
Instance details Defined in TcRnTypes Methods ppr :: ThStage -> SDoc # pprPrec :: Rational -> ThStage -> SDoc #
Outputable TcBinder # |
Instance details Defined in TcRnTypes Methods ppr :: TcBinder -> SDoc # pprPrec :: Rational -> TcBinder -> SDoc #
Outputable HieName # |
Instance details Defined in HieBin Methods ppr :: HieName -> SDoc # pprPrec :: Rational -> HieName -> SDoc #
Outputable CandidatesQTvs # |
Instance details Defined in TcMType Methods ppr :: CandidatesQTvs -> SDoc # pprPrec :: Rational -> CandidatesQTvs -> SDoc #
Outputable HoleFit # |
Instance details Defined in TcHoleFitTypes Methods ppr :: HoleFit -> SDoc # pprPrec :: Rational -> HoleFit -> SDoc #
Outputable HoleFitCandidate # |
Instance details Defined in TcHoleFitTypes Methods ppr :: HoleFitCandidate -> SDoc # pprPrec :: Rational -> HoleFitCandidate -> SDoc #
Outputable TypedHole # |
Instance details Defined in TcHoleFitTypes Methods ppr :: TypedHole -> SDoc # pprPrec :: Rational -> TypedHole -> SDoc #
Outputable PluginRecompile # |
Instance details Defined in Plugins Methods ppr :: PluginRecompile -> SDoc # pprPrec :: Rational -> PluginRecompile -> SDoc #
Outputable HsSigCtxt # |
Instance details Defined in RnEnv Methods ppr :: HsSigCtxt -> SDoc # pprPrec :: Rational -> HsSigCtxt -> SDoc #
Outputable ChildLookupResult # |
Instance details Defined in RnEnv Methods ppr :: ChildLookupResult -> SDoc # pprPrec :: Rational -> ChildLookupResult -> SDoc #
Outputable BCInstr # |
Instance details Defined in ByteCodeInstr Methods ppr :: BCInstr -> SDoc # pprPrec :: Rational -> BCInstr -> SDoc #
Outputable EquationInfo # |
Instance details Defined in DsMonad Methods ppr :: EquationInfo -> SDoc # pprPrec :: Rational -> EquationInfo -> SDoc #
Outputable DsMatchContext # |
Instance details Defined in DsMonad Methods ppr :: DsMatchContext -> SDoc # pprPrec :: Rational -> DsMatchContext -> SDoc #
Outputable ZonkEnv # |
Instance details Defined in TcHsSyn Methods ppr :: ZonkEnv -> SDoc # pprPrec :: Rational -> ZonkEnv -> SDoc #
Outputable Term # |
Instance details Defined in RtClosureInspect Methods ppr :: Term -> SDoc # pprPrec :: Rational -> Term -> SDoc #
Outputable InstanceWhat # |
Instance details Defined in ClsInst Methods ppr :: InstanceWhat -> SDoc # pprPrec :: Rational -> InstanceWhat -> SDoc #
Outputable ClsInstResult # |
Instance details Defined in ClsInst Methods ppr :: ClsInstResult -> SDoc # pprPrec :: Rational -> ClsInstResult -> SDoc #
Outputable InertCans # |
Instance details Defined in TcSMonad Methods ppr :: InertCans -> SDoc # pprPrec :: Rational -> InertCans -> SDoc #
Outputable InertSet # |
Instance details Defined in TcSMonad Methods ppr :: InertSet -> SDoc # pprPrec :: Rational -> InertSet -> SDoc #
Outputable WorkList # |
Instance details Defined in TcSMonad Methods ppr :: WorkList -> SDoc # pprPrec :: Rational -> WorkList -> SDoc #
Outputable FlattenMode # |
Instance details Defined in TcFlatten Methods ppr :: FlattenMode -> SDoc # pprPrec :: Rational -> FlattenMode -> SDoc #
Outputable InferMode # |
Instance details Defined in TcSimplify Methods ppr :: InferMode -> SDoc # pprPrec :: Rational -> InferMode -> SDoc #
Outputable Rank # |
Instance details Defined in TcValidity Methods ppr :: Rank -> SDoc # pprPrec :: Rational -> Rank -> SDoc #
Outputable ThetaOrigin # |
Instance details Defined in TcDerivUtils Methods ppr :: ThetaOrigin -> SDoc # pprPrec :: Rational -> ThetaOrigin -> SDoc #
Outputable PredOrigin # |
Instance details Defined in TcDerivUtils Methods ppr :: PredOrigin -> SDoc # pprPrec :: Rational -> PredOrigin -> SDoc #
Outputable DerivContext # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivContext -> SDoc # pprPrec :: Rational -> DerivContext -> SDoc #
Outputable DerivSpecMechanism # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivSpecMechanism -> SDoc # pprPrec :: Rational -> DerivSpecMechanism -> SDoc #
Outputable DerivInstTys # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivInstTys -> SDoc # pprPrec :: Rational -> DerivInstTys -> SDoc #
Outputable DerivEnv # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivEnv -> SDoc # pprPrec :: Rational -> DerivEnv -> SDoc #
Outputable SAKS_or_CUSK # |
Instance details Defined in TcHsType Methods ppr :: SAKS_or_CUSK -> SDoc # pprPrec :: Rational -> SAKS_or_CUSK -> SDoc #
Outputable LetBndrSpec # |
Instance details Defined in TcPat Methods ppr :: LetBndrSpec -> SDoc # pprPrec :: Rational -> LetBndrSpec -> SDoc #
Outputable TmCt # |
Instance details Defined in GHC.HsToCore.PmCheck.Oracle Methods ppr :: TmCt -> SDoc # pprPrec :: Rational -> TmCt -> SDoc #
Outputable JumpDest # |
Instance details Defined in X86.Instr Methods ppr :: JumpDest -> SDoc # pprPrec :: Rational -> JumpDest -> SDoc #
Outputable Instr # |
Instance details Defined in X86.Ppr Methods ppr :: Instr -> SDoc # pprPrec :: Rational -> Instr -> SDoc #
Outputable Instr # |
Instance details Defined in SPARC.Ppr Methods ppr :: Instr -> SDoc # pprPrec :: Rational -> Instr -> SDoc #
Outputable JumpDest # |
Instance details Defined in SPARC.ShortcutJump Methods ppr :: JumpDest -> SDoc # pprPrec :: Rational -> JumpDest -> SDoc #
Outputable Instr # |
Instance details Defined in PPC.Ppr Methods ppr :: Instr -> SDoc # pprPrec :: Rational -> Instr -> SDoc #
Outputable JumpDest # |
Instance details Defined in PPC.RegInfo Methods ppr :: JumpDest -> SDoc # pprPrec :: Rational -> JumpDest -> SDoc #
Outputable DwarfFrameBlock # |
Instance details Defined in Dwarf.Types Methods ppr :: DwarfFrameBlock -> SDoc # pprPrec :: Rational -> DwarfFrameBlock -> SDoc #
Outputable GetDocsFailure # |
Instance details Defined in InteractiveEval Methods ppr :: GetDocsFailure -> SDoc # pprPrec :: Rational -> GetDocsFailure -> SDoc #
Outputable CoreModule # |
Instance details Defined in GHC Methods ppr :: CoreModule -> SDoc # pprPrec :: Rational -> CoreModule -> SDoc #
Outputable a => Outputable [a] # |
Instance details Defined in Outputable Methods ppr :: [a] -> SDoc # pprPrec :: Rational -> [a] -> SDoc #
Outputable a => Outputable (Maybe a) # |
Instance details Defined in Outputable Methods ppr :: Maybe a -> SDoc # pprPrec :: Rational -> Maybe a -> SDoc #
Outputable elt => Outputable (IntMap elt) # |
Instance details Defined in Outputable Methods ppr :: IntMap elt -> SDoc # pprPrec :: Rational -> IntMap elt -> SDoc #
Outputable a => Outputable (SCC a) # |
Instance details Defined in Outputable Methods ppr :: SCC a -> SDoc # pprPrec :: Rational -> SCC a -> SDoc #
Outputable a => Outputable (Set a) # |
Instance details Defined in Outputable Methods ppr :: Set a -> SDoc # pprPrec :: Rational -> Set a -> SDoc #
Outputable a => Outputable (Pair a) # |
Instance details Defined in Pair Methods ppr :: Pair a -> SDoc # pprPrec :: Rational -> Pair a -> SDoc #
Outputable a => Outputable (OrdList a) # |
Instance details Defined in OrdList Methods ppr :: OrdList a -> SDoc # pprPrec :: Rational -> OrdList a -> SDoc #
Outputable (DefMethSpec ty) # |
Instance details Defined in BasicTypes Methods ppr :: DefMethSpec ty -> SDoc # pprPrec :: Rational -> DefMethSpec ty -> SDoc #
Outputable a => Outputable (UniqFM a) # |
Instance details Defined in UniqFM Methods ppr :: UniqFM a -> SDoc # pprPrec :: Rational -> UniqFM a -> SDoc #
Outputable a => Outputable (UniqSet a) # |
Instance details Defined in UniqSet Methods ppr :: UniqSet a -> SDoc # pprPrec :: Rational -> UniqSet a -> SDoc #
Outputable a => Outputable (UniqDFM a) # |
Instance details Defined in UniqDFM Methods ppr :: UniqDFM a -> SDoc # pprPrec :: Rational -> UniqDFM a -> SDoc #
Outputable a => Outputable (UniqDSet a) # |
Instance details Defined in UniqDSet Methods ppr :: UniqDSet a -> SDoc # pprPrec :: Rational -> UniqDSet a -> SDoc #
OutputableBndr a => Outputable (BooleanFormula a) # |
Instance details Defined in BooleanFormula Methods ppr :: BooleanFormula a -> SDoc # pprPrec :: Rational -> BooleanFormula a -> SDoc #
Outputable node => Outputable (Graph node) # |
Instance details Defined in Digraph Methods ppr :: Graph node -> SDoc # pprPrec :: Rational -> Graph node -> SDoc #
Outputable a => Outputable (Bag a) # |
Instance details Defined in Bag Methods ppr :: Bag a -> SDoc # pprPrec :: Rational -> Bag a -> SDoc #
Outputable a => Outputable (OccEnv a) # |
Instance details Defined in OccName Methods ppr :: OccEnv a -> SDoc # pprPrec :: Rational -> OccEnv a -> SDoc #
Outputable a => Outputable (FieldLbl a) # |
Instance details Defined in FieldLabel Methods ppr :: FieldLbl a -> SDoc # pprPrec :: Rational -> FieldLbl a -> SDoc #
Outputable name => Outputable (AnnTarget name) # |
Instance details Defined in Annotations Methods ppr :: AnnTarget name -> SDoc # pprPrec :: Rational -> AnnTarget name -> SDoc #
OutputableBndrId p => Outputable (Pat (GhcPass p)) # |
Instance details Defined in GHC.Hs.Pat Methods ppr :: Pat (GhcPass p) -> SDoc # pprPrec :: Rational -> Pat (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (IE (GhcPass p)) # |
Instance details Defined in GHC.Hs.ImpExp Methods ppr :: IE (GhcPass p) -> SDoc # pprPrec :: Rational -> IE (GhcPass p) -> SDoc #
OutputableBndr name => Outputable (IEWrappedName name) # |
Instance details Defined in GHC.Hs.ImpExp Methods ppr :: IEWrappedName name -> SDoc # pprPrec :: Rational -> IEWrappedName name -> SDoc #
OutputableBndrId p => Outputable (ImportDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.ImpExp Methods ppr :: ImportDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> ImportDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (SyntaxExpr (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: SyntaxExpr (GhcPass p) -> SDoc # pprPrec :: Rational -> SyntaxExpr (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsSplice (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsSplice (GhcPass p) -> SDoc # pprPrec :: Rational -> HsSplice (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsCmd (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsCmd (GhcPass p) -> SDoc # pprPrec :: Rational -> HsCmd (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsExpr (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsExpr (GhcPass p) -> SDoc # pprPrec :: Rational -> HsExpr (GhcPass p) -> SDoc #
Outputable (CoAxiom br) # |
Instance details Defined in CoAxiom Methods ppr :: CoAxiom br -> SDoc # pprPrec :: Rational -> CoAxiom br -> SDoc #
Outputable a => Outputable (IdentifierDetails a) # |
Instance details Defined in HieTypes Methods ppr :: IdentifierDetails a -> SDoc # pprPrec :: Rational -> IdentifierDetails a -> SDoc #
Outputable a => Outputable (LabelMap a) # |
Instance details Defined in Hoopl.Label Methods ppr :: LabelMap a -> SDoc # pprPrec :: Rational -> LabelMap a -> SDoc #
OutputableBndrId p => Outputable (HsOverLit (GhcPass p)) # |
Instance details Defined in GHC.Hs.Lit Methods ppr :: HsOverLit (GhcPass p) -> SDoc # pprPrec :: Rational -> HsOverLit (GhcPass p) -> SDoc #
Outputable (HsLit (GhcPass p)) # |
Instance details Defined in GHC.Hs.Lit Methods ppr :: HsLit (GhcPass p) -> SDoc # pprPrec :: Rational -> HsLit (GhcPass p) -> SDoc #
Outputable a => Outputable (UnifyResultM a) # |
Instance details Defined in Unify Methods ppr :: UnifyResultM a -> SDoc # pprPrec :: Rational -> UnifyResultM a -> SDoc #
Outputable b => Outputable (TaggedBndr b) # |
Instance details Defined in CoreSyn Methods ppr :: TaggedBndr b -> SDoc # pprPrec :: Rational -> TaggedBndr b -> SDoc #
Outputable id => Outputable (Tickish id) # |
Instance details Defined in PprCore Methods ppr :: Tickish id -> SDoc # pprPrec :: Rational -> Tickish id -> SDoc #
OutputableBndr b => Outputable (Bind b) # |
Instance details Defined in PprCore Methods ppr :: Bind b -> SDoc # pprPrec :: Rational -> Bind b -> SDoc #
OutputableBndr b => Outputable (Expr b) # |
Instance details Defined in PprCore Methods ppr :: Expr b -> SDoc # pprPrec :: Rational -> Expr b -> SDoc #
Outputable (AmbiguousFieldOcc (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: AmbiguousFieldOcc (GhcPass p) -> SDoc # pprPrec :: Rational -> AmbiguousFieldOcc (GhcPass p) -> SDoc #
Outputable (FieldOcc pass) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: FieldOcc pass -> SDoc # pprPrec :: Rational -> FieldOcc pass -> SDoc #
OutputableBndrId p => Outputable (ConDeclField (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: ConDeclField (GhcPass p) -> SDoc # pprPrec :: Rational -> ConDeclField (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsType (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsType (GhcPass p) -> SDoc # pprPrec :: Rational -> HsType (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsTyVarBndr (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsTyVarBndr (GhcPass p) -> SDoc # pprPrec :: Rational -> HsTyVarBndr (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (LHsQTyVars (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: LHsQTyVars (GhcPass p) -> SDoc # pprPrec :: Rational -> LHsQTyVars (GhcPass p) -> SDoc #
OutputablePass pass => Outputable (GenStgRhs pass) # |
Instance details Defined in StgSyn Methods ppr :: GenStgRhs pass -> SDoc # pprPrec :: Rational -> GenStgRhs pass -> SDoc #
OutputablePass pass => Outputable (GenStgExpr pass) # |
Instance details Defined in StgSyn Methods ppr :: GenStgExpr pass -> SDoc # pprPrec :: Rational -> GenStgExpr pass -> SDoc #
OutputablePass pass => Outputable (GenStgBinding pass) # |
Instance details Defined in StgSyn Methods ppr :: GenStgBinding pass -> SDoc # pprPrec :: Rational -> GenStgBinding pass -> SDoc #
OutputablePass pass => Outputable (GenStgTopBinding pass) # |
Instance details Defined in StgSyn Methods ppr :: GenStgTopBinding pass -> SDoc # pprPrec :: Rational -> GenStgTopBinding pass -> SDoc #
Outputable instr => Outputable (ListGraph instr) # |
Instance details Defined in Cmm Methods ppr :: ListGraph instr -> SDoc # pprPrec :: Rational -> ListGraph instr -> SDoc #
Outputable instr => Outputable (GenBasicBlock instr) # |
Instance details Defined in Cmm Methods ppr :: GenBasicBlock instr -> SDoc # pprPrec :: Rational -> GenBasicBlock instr -> SDoc #
Outputable instr => Outputable (LiveInstr instr) # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: LiveInstr instr -> SDoc # pprPrec :: Rational -> LiveInstr instr -> SDoc #
Outputable instr => Outputable (InstrSR instr) # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: InstrSR instr -> SDoc # pprPrec :: Rational -> InstrSR instr -> SDoc #
Outputable a => Outputable (CoreMap a) # |
Instance details Defined in CoreMap Methods ppr :: CoreMap a -> SDoc # pprPrec :: Rational -> CoreMap a -> SDoc #
Outputable a => Outputable (NonVoid a) # |
Instance details Defined in GHC.StgToCmm.Closure Methods ppr :: NonVoid a -> SDoc # pprPrec :: Rational -> NonVoid a -> SDoc #
Outputable (FunDepEqn a) # |
Instance details Defined in FunDeps Methods ppr :: FunDepEqn a -> SDoc # pprPrec :: Rational -> FunDepEqn a -> SDoc #
Outputable a => Outputable (RecordPatSynField a) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: RecordPatSynField a -> SDoc # pprPrec :: Rational -> RecordPatSynField a -> SDoc #
OutputableBndrId p => Outputable (FixitySig (GhcPass p)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: FixitySig (GhcPass p) -> SDoc # pprPrec :: Rational -> FixitySig (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (Sig (GhcPass p)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: Sig (GhcPass p) -> SDoc # pprPrec :: Rational -> Sig (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (IPBind (GhcPass p)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: IPBind (GhcPass p) -> SDoc # pprPrec :: Rational -> IPBind (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsIPBinds (GhcPass p)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: HsIPBinds (GhcPass p) -> SDoc # pprPrec :: Rational -> HsIPBinds (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (ABExport (GhcPass p)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: ABExport (GhcPass p) -> SDoc # pprPrec :: Rational -> ABExport (GhcPass p) -> SDoc #
OutputableBndr (IdP (GhcPass p)) => Outputable (RoleAnnotDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: RoleAnnotDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> RoleAnnotDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (AnnDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: AnnDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> AnnDecl (GhcPass p) -> SDoc #
OutputableBndr (IdP (GhcPass p)) => Outputable (WarnDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: WarnDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> WarnDecl (GhcPass p) -> SDoc #
OutputableBndr (IdP (GhcPass p)) => Outputable (WarnDecls (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: WarnDecls (GhcPass p) -> SDoc # pprPrec :: Rational -> WarnDecls (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (RuleBndr (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: RuleBndr (GhcPass p) -> SDoc # pprPrec :: Rational -> RuleBndr (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (RuleDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: RuleDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> RuleDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (RuleDecls (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: RuleDecls (GhcPass p) -> SDoc # pprPrec :: Rational -> RuleDecls (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (ForeignDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: ForeignDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> ForeignDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (DefaultDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: DefaultDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> DefaultDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (DerivStrategy (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: DerivStrategy (GhcPass p) -> SDoc # pprPrec :: Rational -> DerivStrategy (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (DerivDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: DerivDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> DerivDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (InstDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: InstDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> InstDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (ClsInstDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: ClsInstDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> ClsInstDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (DataFamInstDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: DataFamInstDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> DataFamInstDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (TyFamInstDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: TyFamInstDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> TyFamInstDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (ConDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: ConDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> ConDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (StandaloneKindSig (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: StandaloneKindSig (GhcPass p) -> SDoc # pprPrec :: Rational -> StandaloneKindSig (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsDerivingClause (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: HsDerivingClause (GhcPass p) -> SDoc # pprPrec :: Rational -> HsDerivingClause (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsDataDefn (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: HsDataDefn (GhcPass p) -> SDoc # pprPrec :: Rational -> HsDataDefn (GhcPass p) -> SDoc #
Outputable (FamilyInfo pass) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: FamilyInfo pass -> SDoc # pprPrec :: Rational -> FamilyInfo pass -> SDoc #
OutputableBndrId p => Outputable (FamilyDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: FamilyDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> FamilyDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (TyClGroup (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: TyClGroup (GhcPass p) -> SDoc # pprPrec :: Rational -> TyClGroup (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (TyClDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: TyClDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> TyClDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (SpliceDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: SpliceDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> SpliceDecl (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsGroup (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: HsGroup (GhcPass p) -> SDoc # pprPrec :: Rational -> HsGroup (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsDecl (GhcPass p)) # |
Instance details Defined in GHC.Hs.Decls Methods ppr :: HsDecl (GhcPass p) -> SDoc # pprPrec :: Rational -> HsDecl (GhcPass p) -> SDoc #
(Outputable (GhcPass p), Outputable (NameOrRdrName (GhcPass p))) => Outputable (HsStmtContext (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsStmtContext (GhcPass p) -> SDoc # pprPrec :: Rational -> HsStmtContext (GhcPass p) -> SDoc #
OutputableBndr id => Outputable (HsMatchContext id) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsMatchContext id -> SDoc # pprPrec :: Rational -> HsMatchContext id -> SDoc #
OutputableBndrId p => Outputable (ArithSeqInfo (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: ArithSeqInfo (GhcPass p) -> SDoc # pprPrec :: Rational -> ArithSeqInfo (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsBracket (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsBracket (GhcPass p) -> SDoc # pprPrec :: Rational -> HsBracket (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsSplicedThing (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsSplicedThing (GhcPass p) -> SDoc # pprPrec :: Rational -> HsSplicedThing (GhcPass p) -> SDoc #
OutputableBndrId idL => Outputable (ApplicativeArg (GhcPass idL)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: ApplicativeArg (GhcPass idL) -> SDoc # pprPrec :: Rational -> ApplicativeArg (GhcPass idL) -> SDoc #
OutputableBndrId p => Outputable (HsCmdTop (GhcPass p)) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: HsCmdTop (GhcPass p) -> SDoc # pprPrec :: Rational -> HsCmdTop (GhcPass p) -> SDoc #
OutputableBndrId p => Outputable (HsModule (GhcPass p)) # |
Instance details Defined in GHC.Hs Methods ppr :: HsModule (GhcPass p) -> SDoc # pprPrec :: Rational -> HsModule (GhcPass p) -> SDoc #
Outputable (PatBuilder GhcPs) # |
Instance details Defined in RdrHsSyn Methods ppr :: PatBuilder GhcPs -> SDoc # pprPrec :: Rational -> PatBuilder GhcPs -> SDoc #
Outputable a => Outputable (SharedDIdEnv a) # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: SharedDIdEnv a -> SDoc # pprPrec :: Rational -> SharedDIdEnv a -> SDoc #
Outputable a => Outputable (Shared a) # |
Instance details Defined in GHC.HsToCore.PmCheck.Types Methods ppr :: Shared a -> SDoc # pprPrec :: Rational -> Shared a -> SDoc #
OutputableBndrId a => Outputable (InstInfo (GhcPass a)) # |
Instance details Defined in TcEnv Methods ppr :: InstInfo (GhcPass a) -> SDoc # pprPrec :: Rational -> InstInfo (GhcPass a) -> SDoc #
Outputable a => Outputable (ProtoBCO a) # |
Instance details Defined in ByteCodeInstr Methods ppr :: ProtoBCO a -> SDoc # pprPrec :: Rational -> ProtoBCO a -> SDoc #
Outputable a => Outputable (StopOrContinue a) # |
Instance details Defined in TcCanonical Methods ppr :: StopOrContinue a -> SDoc # pprPrec :: Rational -> StopOrContinue a -> SDoc #
Outputable theta => Outputable (DerivSpec theta) # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivSpec theta -> SDoc # pprPrec :: Rational -> DerivSpec theta -> SDoc #
(Outputable a, Outputable b) => Outputable (Either a b) # |
Instance details Defined in Outputable Methods ppr :: Either a b -> SDoc # pprPrec :: Rational -> Either a b -> SDoc #
(Outputable a, Outputable b) => Outputable (a, b) # |
Instance details Defined in Outputable Methods ppr :: (a, b) -> SDoc # pprPrec :: Rational -> (a, b) -> SDoc #
(Outputable key, Outputable elt) => Outputable (Map key elt) # |
Instance details Defined in Outputable Methods ppr :: Map key elt -> SDoc # pprPrec :: Rational -> Map key elt -> SDoc #
(Outputable l, Outputable e) => Outputable (GenLocated l e) # |
Instance details Defined in SrcLoc Methods ppr :: GenLocated l e -> SDoc # pprPrec :: Rational -> GenLocated l e -> SDoc #
(Outputable k, Outputable a) => Outputable (UniqMap k a) # |
Instance details Defined in UniqMap Methods ppr :: UniqMap k a -> SDoc # pprPrec :: Rational -> UniqMap k a -> SDoc #
(Outputable a, Outputable b) => Outputable (Node a b) # |
Instance details Defined in Digraph Methods ppr :: Node a b -> SDoc # pprPrec :: Rational -> Node a b -> SDoc #
Outputable tv => Outputable (VarBndr tv ArgFlag) # |
Instance details Defined in Var Methods ppr :: VarBndr tv ArgFlag -> SDoc # pprPrec :: Rational -> VarBndr tv ArgFlag -> SDoc #
OutputableBndr tv => Outputable (VarBndr tv TyConBndrVis) # |
Instance details Defined in TyCon Methods ppr :: VarBndr tv TyConBndrVis -> SDoc # pprPrec :: Rational -> VarBndr tv TyConBndrVis -> SDoc #
(Outputable a, Outputable (m a)) => Outputable (GenMap m a) # |
Instance details Defined in TrieMap Methods ppr :: GenMap m a -> SDoc # pprPrec :: Rational -> GenMap m a -> SDoc #
(TrieMap m, Outputable a) => Outputable (ListMap m a) # |
Instance details Defined in TrieMap Methods ppr :: ListMap m a -> SDoc # pprPrec :: Rational -> ListMap m a -> SDoc #
(Outputable tm, Outputable ty) => Outputable (HsArg tm ty) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsArg tm ty -> SDoc # pprPrec :: Rational -> HsArg tm ty -> SDoc #
(Outputable arg, Outputable rec) => Outputable (HsConDetails arg rec) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsConDetails arg rec -> SDoc # pprPrec :: Rational -> HsConDetails arg rec -> SDoc #
Outputable thing => Outputable (HsWildCardBndrs (GhcPass p) thing) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsWildCardBndrs (GhcPass p) thing -> SDoc # pprPrec :: Rational -> HsWildCardBndrs (GhcPass p) thing -> SDoc #
Outputable thing => Outputable (HsImplicitBndrs (GhcPass p) thing) # |
Instance details Defined in GHC.Hs.Types Methods ppr :: HsImplicitBndrs (GhcPass p) thing -> SDoc # pprPrec :: Rational -> HsImplicitBndrs (GhcPass p) thing -> SDoc #
Outputable (CmmNode e x) # |
Instance details Defined in PprCmm Methods ppr :: CmmNode e x -> SDoc # pprPrec :: Rational -> CmmNode e x -> SDoc #
(OutputableBndrId l, OutputableBndrId r, Outputable (XXPatSynBind (GhcPass l) (GhcPass r))) => Outputable (PatSynBind (GhcPass l) (GhcPass r)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: PatSynBind (GhcPass l) (GhcPass r) -> SDoc # pprPrec :: Rational -> PatSynBind (GhcPass l) (GhcPass r) -> SDoc #
(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsBindLR (GhcPass pl) (GhcPass pr)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: HsBindLR (GhcPass pl) (GhcPass pr) -> SDoc # pprPrec :: Rational -> HsBindLR (GhcPass pl) (GhcPass pr) -> SDoc #
(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsValBindsLR (GhcPass pl) (GhcPass pr)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: HsValBindsLR (GhcPass pl) (GhcPass pr) -> SDoc # pprPrec :: Rational -> HsValBindsLR (GhcPass pl) (GhcPass pr) -> SDoc #
(OutputableBndrId pl, OutputableBndrId pr) => Outputable (HsLocalBindsLR (GhcPass pl) (GhcPass pr)) # |
Instance details Defined in GHC.Hs.Binds Methods ppr :: HsLocalBindsLR (GhcPass pl) (GhcPass pr) -> SDoc # pprPrec :: Rational -> HsLocalBindsLR (GhcPass pl) (GhcPass pr) -> SDoc #
(Outputable p, Outputable arg) => Outputable (HsRecField' p arg) # |
Instance details Defined in GHC.Hs.Pat Methods ppr :: HsRecField' p arg -> SDoc # pprPrec :: Rational -> HsRecField' p arg -> SDoc #
Outputable arg => Outputable (HsRecFields p arg) # |
Instance details Defined in GHC.Hs.Pat Methods ppr :: HsRecFields p arg -> SDoc # pprPrec :: Rational -> HsRecFields p arg -> SDoc #
(Outputable (StmtLR idL idL (LHsExpr idL)), Outputable (XXParStmtBlock idL idR)) => Outputable (ParStmtBlock idL idR) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: ParStmtBlock idL idR -> SDoc # pprPrec :: Rational -> ParStmtBlock idL idR -> SDoc #
(OutputableBndrId pr, Outputable body) => Outputable (Match (GhcPass pr) body) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: Match (GhcPass pr) body -> SDoc # pprPrec :: Rational -> Match (GhcPass pr) body -> SDoc #
(Outputable statics, Outputable instr) => Outputable (RegAllocStats statics instr) # |
Instance details Defined in RegAlloc.Graph.Stats Methods ppr :: RegAllocStats statics instr -> SDoc # pprPrec :: Rational -> RegAllocStats statics instr -> SDoc #
(Outputable a, Outputable b, Outputable c) => Outputable (a, b, c) # |
Instance details Defined in Outputable Methods ppr :: (a, b, c) -> SDoc # pprPrec :: Rational -> (a, b, c) -> SDoc #
Outputable (Block CmmNode C C) # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode C C -> SDoc # pprPrec :: Rational -> Block CmmNode C C -> SDoc #
Outputable (Block CmmNode C O) # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode C O -> SDoc # pprPrec :: Rational -> Block CmmNode C O -> SDoc #
Outputable (Block CmmNode O C) # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode O C -> SDoc # pprPrec :: Rational -> Block CmmNode O C -> SDoc #
Outputable (Block CmmNode O O) # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode O O -> SDoc # pprPrec :: Rational -> Block CmmNode O O -> SDoc #
Outputable (Graph CmmNode e x) # |
Instance details Defined in PprCmm Methods ppr :: Graph CmmNode e x -> SDoc # pprPrec :: Rational -> Graph CmmNode e x -> SDoc #
(Outputable d, Outputable info, Outputable i) => Outputable (GenCmmDecl d info i) # |
Instance details Defined in PprCmmDecl Methods ppr :: GenCmmDecl d info i -> SDoc # pprPrec :: Rational -> GenCmmDecl d info i -> SDoc #
(OutputableBndrId pl, OutputableBndrId pr, Outputable body) => Outputable (StmtLR (GhcPass pl) (GhcPass pr) body) # |
Instance details Defined in GHC.Hs.Expr Methods ppr :: StmtLR (GhcPass pl) (GhcPass pr) body -> SDoc # pprPrec :: Rational -> StmtLR (GhcPass pl) (GhcPass pr) body -> SDoc #
(Outputable a, Outputable b, Outputable c, Outputable d) => Outputable (a, b, c, d) # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d) -> SDoc # pprPrec :: Rational -> (a, b, c, d) -> SDoc #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e) => Outputable (a, b, c, d, e) # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e) -> SDoc # pprPrec :: Rational -> (a, b, c, d, e) -> SDoc #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e, Outputable f) => Outputable (a, b, c, d, e, f) # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e, f) -> SDoc # pprPrec :: Rational -> (a, b, c, d, e, f) -> SDoc #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e, Outputable f, Outputable g) => Outputable (a, b, c, d, e, f, g) # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e, f, g) -> SDoc # pprPrec :: Rational -> (a, b, c, d, e, f, g) -> SDoc #

class Outputable a => OutputableBndr a where #

When we print a binder, we often want to print its type too. The `OutputableBndr` class encapsulates this idea.

Minimal complete definition

pprPrefixOcc, pprInfixOcc

Methods

pprBndr :: BindingSite -> a -> SDoc #

pprPrefixOcc :: a -> SDoc #

pprInfixOcc :: a -> SDoc #

bndrIsJoin_maybe :: a -> Maybe Int #

#### Instances

Instances details

OutputableBndr Name # |
Instance details Defined in Name Methods pprBndr :: BindingSite -> Name -> SDoc # pprPrefixOcc :: Name -> SDoc # pprInfixOcc :: Name -> SDoc # bndrIsJoin_maybe :: Name -> Maybe Int #
OutputableBndr OccName # |
Instance details Defined in OccName Methods pprBndr :: BindingSite -> OccName -> SDoc # pprPrefixOcc :: OccName -> SDoc # pprInfixOcc :: OccName -> SDoc # bndrIsJoin_maybe :: OccName -> Maybe Int #
OutputableBndr Var # |
Instance details Defined in PprCore Methods pprBndr :: BindingSite -> Var -> SDoc # pprPrefixOcc :: Var -> SDoc # pprInfixOcc :: Var -> SDoc # bndrIsJoin_maybe :: Var -> Maybe Int #
OutputableBndr RdrName # |
Instance details Defined in RdrName Methods pprBndr :: BindingSite -> RdrName -> SDoc # pprPrefixOcc :: RdrName -> SDoc # pprInfixOcc :: RdrName -> SDoc # bndrIsJoin_maybe :: RdrName -> Maybe Int #
OutputableBndr PatSyn # |
Instance details Defined in PatSyn Methods pprBndr :: BindingSite -> PatSyn -> SDoc # pprPrefixOcc :: PatSyn -> SDoc # pprInfixOcc :: PatSyn -> SDoc # bndrIsJoin_maybe :: PatSyn -> Maybe Int #
OutputableBndr DataCon # |
Instance details Defined in DataCon Methods pprBndr :: BindingSite -> DataCon -> SDoc # pprPrefixOcc :: DataCon -> SDoc # pprInfixOcc :: DataCon -> SDoc # bndrIsJoin_maybe :: DataCon -> Maybe Int #
OutputableBndr ConLike # |
Instance details Defined in ConLike Methods pprBndr :: BindingSite -> ConLike -> SDoc # pprPrefixOcc :: ConLike -> SDoc # pprInfixOcc :: ConLike -> SDoc # bndrIsJoin_maybe :: ConLike -> Maybe Int #
OutputableBndr HsIPName # |
Instance details Defined in GHC.Hs.Types Methods pprBndr :: BindingSite -> HsIPName -> SDoc # pprPrefixOcc :: HsIPName -> SDoc # pprInfixOcc :: HsIPName -> SDoc # bndrIsJoin_maybe :: HsIPName -> Maybe Int #
OutputableBndr BinderInfo # |
Instance details Defined in StgLiftLams.Analysis Methods pprBndr :: BindingSite -> BinderInfo -> SDoc # pprPrefixOcc :: BinderInfo -> SDoc # pprInfixOcc :: BinderInfo -> SDoc # bndrIsJoin_maybe :: BinderInfo -> Maybe Int #
OutputableBndr name => OutputableBndr (IEWrappedName name) # |
Instance details Defined in GHC.Hs.ImpExp Methods pprBndr :: BindingSite -> IEWrappedName name -> SDoc # pprPrefixOcc :: IEWrappedName name -> SDoc # pprInfixOcc :: IEWrappedName name -> SDoc # bndrIsJoin_maybe :: IEWrappedName name -> Maybe Int #
Outputable b => OutputableBndr (TaggedBndr b) # |
Instance details Defined in PprCore Methods pprBndr :: BindingSite -> TaggedBndr b -> SDoc # pprPrefixOcc :: TaggedBndr b -> SDoc # pprInfixOcc :: TaggedBndr b -> SDoc # bndrIsJoin_maybe :: TaggedBndr b -> Maybe Int #
OutputableBndr (AmbiguousFieldOcc (GhcPass p)) # |
Instance details Defined in GHC.Hs.Types Methods pprBndr :: BindingSite -> AmbiguousFieldOcc (GhcPass p) -> SDoc # pprPrefixOcc :: AmbiguousFieldOcc (GhcPass p) -> SDoc # pprInfixOcc :: AmbiguousFieldOcc (GhcPass p) -> SDoc # bndrIsJoin_maybe :: AmbiguousFieldOcc (GhcPass p) -> Maybe Int #

# Pretty printing combinators

data SDoc #

Represents a pretty-printable document.

To display an `SDoc`, use `printSDoc`, `printSDocLn`, `bufLeftRenderSDoc`, or `renderWithStyle`. Avoid calling `runSDoc` directly as it breaks the abstraction layer.

#### Instances

Instances details

IsString SDoc # |
Instance details Defined in Outputable Methods fromString :: String -> SDoc Source #
Outputable SDoc # |
Instance details Defined in Outputable Methods ppr :: SDoc -> SDoc # pprPrec :: Rational -> SDoc -> SDoc #

runSDoc :: SDoc -> SDocContext -> Doc #

initSDocContext :: DynFlags -> PprStyle -> SDocContext #

docToSDoc :: Doc -> SDoc #

interppSP :: Outputable a => [a] -> SDoc #

Returns the separated concatenation of the pretty printed things.

interpp'SP :: Outputable a => [a] -> SDoc #

Returns the comma-separated concatenation of the pretty printed things.

pprQuotedList :: Outputable a => [a] -> SDoc #

Returns the comma-separated concatenation of the quoted pretty printed things.

    [x,y,z]  ==>  `x', `y', `z'

pprWithCommas #

Arguments

:: (a -> SDoc) | The pretty printing function to use
-> [a] | The things to be pretty printed
-> SDoc | `SDoc` where the things have been pretty printed, comma-separated and finally packed into a paragraph.

quotedListWithOr :: [SDoc] -> SDoc #

quotedListWithNor :: [SDoc] -> SDoc #

pprWithBars #

Arguments

:: (a -> SDoc) | The pretty printing function to use
-> [a] | The things to be pretty printed
-> SDoc | `SDoc` where the things have been pretty printed, bar-separated and finally packed into a paragraph.

empty :: SDoc #

isEmpty :: DynFlags -> SDoc -> Bool #

nest :: Int -> SDoc -> SDoc #

Indent `SDoc` some specified amount

char :: Char -> SDoc #

text :: String -> SDoc #

ftext :: FastString -> SDoc #

ptext :: PtrString -> SDoc #

ztext :: FastZString -> SDoc #

int :: Int -> SDoc #

intWithCommas :: Integral a => a -> SDoc #

integer :: Integer -> SDoc #

word :: Integer -> SDoc #

float :: Float -> SDoc #

double :: Double -> SDoc #

rational :: Rational -> SDoc #

doublePrec :: Int -> Double -> SDoc #

`doublePrec p n` shows a floating point number `n` with `p` digits of precision after the decimal point.

parens :: SDoc -> SDoc #

cparen :: Bool -> SDoc -> SDoc #

brackets :: SDoc -> SDoc #

braces :: SDoc -> SDoc #

quotes :: SDoc -> SDoc #

quote :: SDoc -> SDoc #

doubleQuotes :: SDoc -> SDoc #

angleBrackets :: SDoc -> SDoc #

semi :: SDoc #

comma :: SDoc #

colon :: SDoc #

dcolon :: SDoc #

space :: SDoc #

equals :: SDoc #

dot :: SDoc #

vbar :: SDoc #

arrow :: SDoc #

larrow :: SDoc #

darrow :: SDoc #

arrowt :: SDoc #

larrowt :: SDoc #

arrowtt :: SDoc #

larrowtt :: SDoc #

lparen :: SDoc #

rparen :: SDoc #

lbrack :: SDoc #

rbrack :: SDoc #

lbrace :: SDoc #

rbrace :: SDoc #

underscore :: SDoc #

blankLine :: SDoc #

forAllLit :: SDoc #

kindType :: SDoc #

bullet :: SDoc #

(<>) :: SDoc -> SDoc -> SDoc #

Join two `SDoc` together horizontally without a gap

(<+>) :: SDoc -> SDoc -> SDoc #

Join two `SDoc` together horizontally with a gap between them

hcat :: [SDoc] -> SDoc #

Concatenate `SDoc` horizontally

hsep :: [SDoc] -> SDoc #

Concatenate `SDoc` horizontally with a space between each one

($$) :: SDoc -> SDoc -> SDoc #

Join two `SDoc` together vertically; if there is no vertical overlap it "dovetails" the two onto one line

($+$) :: SDoc -> SDoc -> SDoc #

Join two `SDoc` together vertically

vcat :: [SDoc] -> SDoc #

Concatenate `SDoc` vertically with dovetailing

sep :: [SDoc] -> SDoc #

Separate: is either like `hsep` or like `vcat`, depending on what fits

cat :: [SDoc] -> SDoc #

Catenate: is either like `hcat` or like `vcat`, depending on what fits

fsep :: [SDoc] -> SDoc #

A paragraph-fill combinator. It's much like sep, only it keeps fitting things on one line until it can't fit any more.

fcat :: [SDoc] -> SDoc #

This behaves like `fsep`, but it uses `<>` for horizontal conposition rather than `<+>`

hang #

Arguments

:: SDoc | The header
-> Int | Amount to indent the hung body
-> SDoc | The hung body, indented and placed below the header
-> SDoc |

hangNotEmpty :: SDoc -> Int -> SDoc -> SDoc #

This behaves like `hang`, but does not indent the second document when the header is empty.

punctuate #

Arguments

:: SDoc | The punctuation
-> [SDoc] | The list that will have punctuation added between every adjacent pair of elements
-> [SDoc] | Punctuated list

ppWhen :: Bool -> SDoc -> SDoc #

ppUnless :: Bool -> SDoc -> SDoc #

speakNth :: Int -> SDoc #

Converts an integer to a verbal index:

    speakNth 1 = text "first"
    speakNth 5 = text "fifth"
    speakNth 21 = text "21st"

speakN :: Int -> SDoc #

Converts an integer to a verbal multiplicity:

    speakN 0 = text "none"
    speakN 5 = text "five"
    speakN 10 = text "10"

speakNOf :: Int -> SDoc -> SDoc #

Converts an integer and object description to a statement about the multiplicity of those objects:

    speakNOf 0 (text "melon") = text "no melons"
    speakNOf 1 (text "melon") = text "one melon"
    speakNOf 3 (text "melon") = text "three melons"

plural :: [a] -> SDoc #

Determines the pluralisation suffix appropriate for the length of a list:

    plural [] = char 's'
    plural ["Hello"] = empty
    plural ["Hello", "World"] = char 's'

isOrAre :: [a] -> SDoc #

Determines the form of to be appropriate for the length of a list:

    isOrAre [] = text "are"
    isOrAre ["Hello"] = text "is"
    isOrAre ["Hello", "World"] = text "are"

doOrDoes :: [a] -> SDoc #

Determines the form of to do appropriate for the length of a list:

    doOrDoes [] = text "do"
    doOrDoes ["Hello"] = text "does"
    doOrDoes ["Hello", "World"] = text "do"

unicodeSyntax :: SDoc -> SDoc -> SDoc #

coloured :: PprColour -> SDoc -> SDoc #

Apply the given colour/style for the argument.

Only takes effect if colours are enabled.

keyword :: SDoc -> SDoc #

# Converting `SDoc` into strings and outputing it

printSDoc :: Mode -> DynFlags -> Handle -> PprStyle -> SDoc -> IO () #

The analog of `printDoc_` for `SDoc`, which tries to make sure the terminal doesn't get screwed up by the ANSI color codes if an exception is thrown during pretty-printing.

printSDocLn :: Mode -> DynFlags -> Handle -> PprStyle -> SDoc -> IO () #

Like `printSDoc` but appends an extra newline.

printForUser :: DynFlags -> Handle -> PrintUnqualified -> SDoc -> IO () #

printForUserPartWay :: DynFlags -> Handle -> Int -> PrintUnqualified -> SDoc -> IO () #

printForC :: DynFlags -> Handle -> SDoc -> IO () #

Like `printSDocLn` but specialized with `LeftMode` and ``PprCode` `CStyle``. This is typically used to output C-- code.

bufLeftRenderSDoc :: DynFlags -> BufHandle -> PprStyle -> SDoc -> IO () #

An efficient variant of `printSDoc` specialized for `LeftMode` that outputs to a `BufHandle`.

pprCode :: CodeStyle -> SDoc -> SDoc #

mkCodeStyle :: CodeStyle -> PprStyle #

showSDoc :: DynFlags -> SDoc -> String #

showSDocUnsafe :: SDoc -> String #

showSDocOneLine :: DynFlags -> SDoc -> String #

showSDocForUser :: DynFlags -> PrintUnqualified -> SDoc -> String #

showSDocDebug :: DynFlags -> SDoc -> String #

showSDocDump :: DynFlags -> SDoc -> String #

showSDocDumpOneLine :: DynFlags -> SDoc -> String #

showSDocUnqual :: DynFlags -> SDoc -> String #

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

renderWithStyle :: DynFlags -> SDoc -> PprStyle -> String #

pprInfixVar :: Bool -> SDoc -> SDoc #

pprPrefixVar :: Bool -> SDoc -> SDoc #

pprHsChar :: Char -> SDoc #

Special combinator for showing character literals.

pprHsString :: FastString -> SDoc #

Special combinator for showing string literals.

pprHsBytes :: ByteString -> SDoc #

Special combinator for showing bytestring literals.

primFloatSuffix :: SDoc #

primCharSuffix :: SDoc #

primWordSuffix :: SDoc #

primDoubleSuffix :: SDoc #

primInt64Suffix :: SDoc #

primWord64Suffix :: SDoc #

primIntSuffix :: SDoc #

pprPrimChar :: Char -> SDoc #

Special combinator for showing unboxed literals.

pprPrimInt :: Integer -> SDoc #

pprPrimWord :: Integer -> SDoc #

pprPrimInt64 :: Integer -> SDoc #

pprPrimWord64 :: Integer -> SDoc #

pprFastFilePath :: FastString -> SDoc #

pprFilePathString :: FilePath -> SDoc #

Normalise, escape and render a string representing a path

e.g. "c:\whatever"

# Controlling the style in which output is printed

data BindingSite #

`BindingSite` is used to tell the thing that prints binder what language construct is binding the identifier. This can be used to decide how much info to print. Also see Note [Binding-site specific printing] in PprCore

Constructors

LambdaBind | The x in (x. e)
CaseBind | The x in case scrut of x { (y,z) -> ... }
CasePatBind | The y,z in case scrut of x { (y,z) -> ... }
LetBind | The x in (let x = rhs in e)

data PprStyle #

#### Instances

Instances details

Outputable PprStyle # |
Instance details Defined in Outputable Methods ppr :: PprStyle -> SDoc # pprPrec :: Rational -> PprStyle -> SDoc #

data CodeStyle #

Constructors

CStyle |
AsmStyle |

data PrintUnqualified #

When printing code that contains original names, we need to map the original names back to something the user understands. This is the purpose of the triple of functions that gets passed around when rendering `SDoc`.

Constructors

QueryQualify |
Fields queryQualifyName :: QueryQualifyName queryQualifyModule :: QueryQualifyModule queryQualifyPackage :: QueryQualifyPackage

type QueryQualifyName = Module -> OccName -> QualifyName #

Given a `Name`'s `Module` and `OccName`, decide whether and how to qualify it.

type QueryQualifyModule = Module -> Bool #

For a given module, we need to know whether to print it with a package name to disambiguate it.

type QueryQualifyPackage = UnitId -> Bool #

For a given package, we need to know whether to print it with the component id to disambiguate it.

reallyAlwaysQualify :: PrintUnqualified #

reallyAlwaysQualifyNames :: QueryQualifyName #

alwaysQualify :: PrintUnqualified #

alwaysQualifyNames :: QueryQualifyName #

NB: This won't ever show package IDs

alwaysQualifyModules :: QueryQualifyModule #

neverQualify :: PrintUnqualified #

neverQualifyNames :: QueryQualifyName #

neverQualifyModules :: QueryQualifyModule #

alwaysQualifyPackages :: QueryQualifyPackage #

neverQualifyPackages :: QueryQualifyPackage #

data QualifyName #

Constructors

NameUnqual |
NameQual ModuleName |
NameNotInScope1 |
NameNotInScope2 |

#### Instances

Instances details

Outputable QualifyName # |
Instance details Defined in Outputable Methods ppr :: QualifyName -> SDoc # pprPrec :: Rational -> QualifyName -> SDoc #

queryQual :: PprStyle -> PrintUnqualified #

sdocWithDynFlags :: (DynFlags -> SDoc) -> SDoc #

sdocWithPlatform :: (Platform -> SDoc) -> SDoc #

updSDocDynFlags :: (DynFlags -> DynFlags) -> SDoc -> SDoc #

getPprStyle :: (PprStyle -> SDoc) -> SDoc #

withPprStyle :: PprStyle -> SDoc -> SDoc #

withPprStyleDoc :: DynFlags -> PprStyle -> SDoc -> Doc #

This is not a recommended way to render `SDoc`, since it breaks the abstraction layer of `SDoc`. Prefer to use `printSDoc`, `printSDocLn`, `bufLeftRenderSDoc`, or `renderWithStyle` instead.

setStyleColoured :: Bool -> PprStyle -> PprStyle #

pprDeeper :: SDoc -> SDoc #

pprDeeperList :: ([SDoc] -> SDoc) -> [SDoc] -> SDoc #

Truncate a list that is longer than the current depth.

pprSetDepth :: Depth -> SDoc -> SDoc #

codeStyle :: PprStyle -> Bool #

userStyle :: PprStyle -> Bool #

debugStyle :: PprStyle -> Bool #

dumpStyle :: PprStyle -> Bool #

asmStyle :: PprStyle -> Bool #

qualName :: PprStyle -> QueryQualifyName #

qualModule :: PprStyle -> QueryQualifyModule #

qualPackage :: PprStyle -> QueryQualifyPackage #

mkErrStyle :: DynFlags -> PrintUnqualified -> PprStyle #

Style for printing error messages

defaultErrStyle :: DynFlags -> PprStyle #

defaultDumpStyle :: DynFlags -> PprStyle #

mkDumpStyle :: DynFlags -> PrintUnqualified -> PprStyle #

defaultUserStyle :: DynFlags -> PprStyle #

mkUserStyle :: DynFlags -> PrintUnqualified -> Depth -> PprStyle #

cmdlineParserStyle :: DynFlags -> PprStyle #

data Depth #

Constructors

AllTheWay |
PartWay Int |

ifPprDebug :: SDoc -> SDoc -> SDoc #

Says what to do with and without -dppr-debug

whenPprDebug :: SDoc -> SDoc #

Says what to do with -dppr-debug; without, return empty

getPprDebug :: (Bool -> SDoc) -> SDoc #

# Error handling and debugging utilities

pprPanic :: HasCallStack => String -> SDoc -> a #

Throw an exception saying "bug in GHC"

pprSorry :: String -> SDoc -> a #

Throw an exception saying "this isn't finished yet"

assertPprPanic :: HasCallStack => String -> Int -> SDoc -> a #

Panic with an assertation failure, recording the given file and line number. Should typically be accessed with the ASSERT family of macros

pprPgmError :: String -> SDoc -> a #

Throw an exception saying "bug in pgm being compiled" (used for unusual program errors)

pprTrace :: String -> SDoc -> a -> a #

If debug output is on, show some `SDoc` on the screen

pprTraceDebug :: String -> SDoc -> a -> a #

pprTraceWith :: String -> (a -> SDoc) -> a -> a #

`pprTraceWith desc f x` is equivalent to `pprTrace desc (f x) x`. This allows you to print details from the returned value as well as from ambient variables.

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

`pprTraceIt desc x` is equivalent to `pprTrace desc (ppr x) x`

warnPprTrace :: HasCallStack => Bool -> String -> Int -> SDoc -> a -> a #

Just warn about an assertion failure, recording the given file and line number. Should typically be accessed with the WARN macros

pprSTrace :: HasCallStack => SDoc -> a -> a #

If debug output is on, show some `SDoc` on the screen along with a call stack when available.

pprTraceException :: ExceptionMonad m => String -> SDoc -> m a -> m a #

`pprTraceException desc x action` runs action, printing a message if it throws an exception.

pprTraceM :: Applicative f => String -> SDoc -> f () #

trace :: String -> a -> a Source #

The `trace` function outputs the trace message given as its first argument, before returning the second argument as its result.

For example, this returns the value of `f x` but first outputs the message.

    >>> let x = 123; f = show
    >>> trace ("calling f with x = " ++ show x) (f x)
    "calling f with x = 123
    123"

The `trace` function should only be used for debugging, or for monitoring execution. The function is not referentially transparent: its type indicates that it is a pure function but it has the side effect of outputting the trace message.

pgmError :: String -> a #

Panics and asserts.

panic :: String -> a #

Panics and asserts.

sorry :: String -> a #

Panics and asserts.

assertPanic :: String -> Int -> a #

Throw a failed assertion exception for a given filename and line number.

pprDebugAndThen :: DynFlags -> (String -> a) -> SDoc -> SDoc -> a #

callStackDoc :: HasCallStack => SDoc #