Outputable

ghc-8.4.2: 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
- class Outputable a => OutputableBndr a where
- 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 :: LitString -> SDoc
- ztext :: FastZString -> SDoc
- int :: Int -> SDoc
- intWithCommas :: Integral a => a -> SDoc
- integer :: 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
- paBrackets :: 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
- kindStar :: 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
- 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
- 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
- pprTraceIt :: Outputable a => String -> a -> a
- warnPprTrace :: Bool -> String -> Int -> SDoc -> a -> a
- pprSTrace :: HasCallStack => SDoc -> a -> a
- pprTraceException :: ExceptionMonad m => String -> SDoc -> m a -> m a
- 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 Source #

Class designating that some type has an `SDoc` representation

Methods

ppr :: a -> SDoc Source #

pprPrec :: Rational -> a -> SDoc Source #

Instances

Outputable Bool Source # |
Instance details Defined in Outputable Methods ppr :: Bool -> SDoc Source # pprPrec :: Rational -> Bool -> SDoc Source #
Outputable Char Source # |
Instance details Defined in Outputable Methods ppr :: Char -> SDoc Source # pprPrec :: Rational -> Char -> SDoc Source #
Outputable Int Source # |
Instance details Defined in Outputable Methods ppr :: Int -> SDoc Source # pprPrec :: Rational -> Int -> SDoc Source #
Outputable Int32 Source # |
Instance details Defined in Outputable Methods ppr :: Int32 -> SDoc Source # pprPrec :: Rational -> Int32 -> SDoc Source #
Outputable Int64 Source # |
Instance details Defined in Outputable Methods ppr :: Int64 -> SDoc Source # pprPrec :: Rational -> Int64 -> SDoc Source #
Outputable Integer Source # |
Instance details Defined in Outputable Methods ppr :: Integer -> SDoc Source # pprPrec :: Rational -> Integer -> SDoc Source #
Outputable Ordering Source # |
Instance details Defined in Outputable Methods ppr :: Ordering -> SDoc Source # pprPrec :: Rational -> Ordering -> SDoc Source #
Outputable Word Source # |
Instance details Defined in Outputable Methods ppr :: Word -> SDoc Source # pprPrec :: Rational -> Word -> SDoc Source #
Outputable Word16 Source # |
Instance details Defined in Outputable Methods ppr :: Word16 -> SDoc Source # pprPrec :: Rational -> Word16 -> SDoc Source #
Outputable Word32 Source # |
Instance details Defined in Outputable Methods ppr :: Word32 -> SDoc Source # pprPrec :: Rational -> Word32 -> SDoc Source #
Outputable () Source # |
Instance details Defined in Outputable Methods ppr :: () -> SDoc Source # pprPrec :: Rational -> () -> SDoc Source #
Outputable Fingerprint Source # |
Instance details Defined in Outputable Methods ppr :: Fingerprint -> SDoc Source # pprPrec :: Rational -> Fingerprint -> SDoc Source #
Outputable Extension Source # |
Instance details Defined in Outputable Methods ppr :: Extension -> SDoc Source # pprPrec :: Rational -> Extension -> SDoc Source #
Outputable Serialized Source # |
Instance details Defined in Outputable Methods ppr :: Serialized -> SDoc Source # pprPrec :: Rational -> Serialized -> SDoc Source #
Outputable Name Source # |
Instance details Defined in Name Methods ppr :: Name -> SDoc Source # pprPrec :: Rational -> Name -> SDoc Source #
Outputable OccName Source # |
Instance details Defined in OccName Methods ppr :: OccName -> SDoc Source # pprPrec :: Rational -> OccName -> SDoc Source #
Outputable PrimOp Source # |
Instance details Defined in PrimOp Methods ppr :: PrimOp -> SDoc Source # pprPrec :: Rational -> PrimOp -> SDoc Source #
Outputable TyCon Source # |
Instance details Defined in TyCon Methods ppr :: TyCon -> SDoc Source # pprPrec :: Rational -> TyCon -> SDoc Source #
Outputable FastString Source # |
Instance details Defined in Outputable Methods ppr :: FastString -> SDoc Source # pprPrec :: Rational -> FastString -> SDoc Source #
Outputable ComponentId Source # |
Instance details Defined in Module Methods ppr :: ComponentId -> SDoc Source # pprPrec :: Rational -> ComponentId -> SDoc Source #
Outputable InstalledUnitId Source # |
Instance details Defined in Module Methods ppr :: InstalledUnitId -> SDoc Source # pprPrec :: Rational -> InstalledUnitId -> SDoc Source #
Outputable UnitId Source # |
Instance details Defined in Module Methods ppr :: UnitId -> SDoc Source # pprPrec :: Rational -> UnitId -> SDoc Source #
Outputable ModuleName Source # |
Instance details Defined in Module Methods ppr :: ModuleName -> SDoc Source # pprPrec :: Rational -> ModuleName -> SDoc Source #
Outputable Module Source # |
Instance details Defined in Module Methods ppr :: Module -> SDoc Source # pprPrec :: Rational -> Module -> SDoc Source #
Outputable QualifyName Source # |
Instance details Defined in Outputable Methods ppr :: QualifyName -> SDoc Source # pprPrec :: Rational -> QualifyName -> SDoc Source #
Outputable PprStyle Source # |
Instance details Defined in Outputable Methods ppr :: PprStyle -> SDoc Source # pprPrec :: Rational -> PprStyle -> SDoc Source #
Outputable TyBinder Source # |
Instance details Defined in TyCoRep Methods ppr :: TyBinder -> SDoc Source # pprPrec :: Rational -> TyBinder -> SDoc Source #
Outputable TCvSubst Source # |
Instance details Defined in TyCoRep Methods ppr :: TCvSubst -> SDoc Source # pprPrec :: Rational -> TCvSubst -> SDoc Source #
Outputable UnivCoProvenance Source # |
Instance details Defined in TyCoRep Methods ppr :: UnivCoProvenance -> SDoc Source # pprPrec :: Rational -> UnivCoProvenance -> SDoc Source #
Outputable Coercion Source # |
Instance details Defined in TyCoRep Methods ppr :: Coercion -> SDoc Source # pprPrec :: Rational -> Coercion -> SDoc Source #
Outputable TyThing Source # |
Instance details Defined in TyCoRep Methods ppr :: TyThing -> SDoc Source # pprPrec :: Rational -> TyThing -> SDoc Source #
Outputable Type Source # |
Instance details Defined in TyCoRep Methods ppr :: Type -> SDoc Source # pprPrec :: Rational -> Type -> SDoc Source #
Outputable MetaDetails Source # |
Instance details Defined in TcType Methods ppr :: MetaDetails -> SDoc Source # pprPrec :: Rational -> MetaDetails -> SDoc Source #
Outputable SrcSpan Source # |
Instance details Defined in SrcLoc Methods ppr :: SrcSpan -> SDoc Source # pprPrec :: Rational -> SrcSpan -> SDoc Source #
Outputable RealSrcSpan Source # |
Instance details Defined in SrcLoc Methods ppr :: RealSrcSpan -> SDoc Source # pprPrec :: Rational -> RealSrcSpan -> SDoc Source #
Outputable SrcLoc Source # |
Instance details Defined in SrcLoc Methods ppr :: SrcLoc -> SDoc Source # pprPrec :: Rational -> SrcLoc -> SDoc Source #
Outputable RealSrcLoc Source # |
Instance details Defined in SrcLoc Methods ppr :: RealSrcLoc -> SDoc Source # pprPrec :: Rational -> RealSrcLoc -> SDoc Source #
Outputable IdDetails Source # |
Instance details Defined in IdInfo Methods ppr :: IdDetails -> SDoc Source # pprPrec :: Rational -> IdDetails -> SDoc Source #
Outputable HsDocString Source # |
Instance details Defined in HsDoc Methods ppr :: HsDocString -> SDoc Source # pprPrec :: Rational -> HsDocString -> SDoc Source #
Outputable IntWithInf Source # |
Instance details Defined in BasicTypes Methods ppr :: IntWithInf -> SDoc Source # pprPrec :: Rational -> IntWithInf -> SDoc Source #
Outputable FractionalLit Source # |
Instance details Defined in BasicTypes Methods ppr :: FractionalLit -> SDoc Source # pprPrec :: Rational -> FractionalLit -> SDoc Source #
Outputable IntegralLit Source # |
Instance details Defined in BasicTypes Methods ppr :: IntegralLit -> SDoc Source # pprPrec :: Rational -> IntegralLit -> SDoc Source #
Outputable InlineSpec Source # |
Instance details Defined in BasicTypes Methods ppr :: InlineSpec -> SDoc Source # pprPrec :: Rational -> InlineSpec -> SDoc Source #
Outputable InlinePragma Source # |
Instance details Defined in BasicTypes Methods ppr :: InlinePragma -> SDoc Source # pprPrec :: Rational -> InlinePragma -> SDoc Source #
Outputable RuleMatchInfo Source # |
Instance details Defined in BasicTypes Methods ppr :: RuleMatchInfo -> SDoc Source # pprPrec :: Rational -> RuleMatchInfo -> SDoc Source #
Outputable Activation Source # |
Instance details Defined in BasicTypes Methods ppr :: Activation -> SDoc Source # pprPrec :: Rational -> Activation -> SDoc Source #
Outputable CompilerPhase Source # |
Instance details Defined in BasicTypes Methods ppr :: CompilerPhase -> SDoc Source # pprPrec :: Rational -> CompilerPhase -> SDoc Source #
Outputable SourceText Source # |
Instance details Defined in BasicTypes Methods ppr :: SourceText -> SDoc Source # pprPrec :: Rational -> SourceText -> SDoc Source #
Outputable SuccessFlag Source # |
Instance details Defined in BasicTypes Methods ppr :: SuccessFlag -> SDoc Source # pprPrec :: Rational -> SuccessFlag -> SDoc Source #
Outputable TailCallInfo Source # |
Instance details Defined in BasicTypes Methods ppr :: TailCallInfo -> SDoc Source # pprPrec :: Rational -> TailCallInfo -> SDoc Source #
Outputable OccInfo Source # |
Instance details Defined in BasicTypes Methods ppr :: OccInfo -> SDoc Source # pprPrec :: Rational -> OccInfo -> SDoc Source #
Outputable OverlapMode Source # |
Instance details Defined in BasicTypes Methods ppr :: OverlapMode -> SDoc Source # pprPrec :: Rational -> OverlapMode -> SDoc Source #
Outputable OverlapFlag Source # |
Instance details Defined in BasicTypes Methods ppr :: OverlapFlag -> SDoc Source # pprPrec :: Rational -> OverlapFlag -> SDoc Source #
Outputable DerivStrategy Source # |
Instance details Defined in BasicTypes Methods ppr :: DerivStrategy -> SDoc Source # pprPrec :: Rational -> DerivStrategy -> SDoc Source #
Outputable Origin Source # |
Instance details Defined in BasicTypes Methods ppr :: Origin -> SDoc Source # pprPrec :: Rational -> Origin -> SDoc Source #
Outputable RecFlag Source # |
Instance details Defined in BasicTypes Methods ppr :: RecFlag -> SDoc Source # pprPrec :: Rational -> RecFlag -> SDoc Source #
Outputable Boxity Source # |
Instance details Defined in BasicTypes Methods ppr :: Boxity -> SDoc Source # pprPrec :: Rational -> Boxity -> SDoc Source #
Outputable TopLevelFlag Source # |
Instance details Defined in BasicTypes Methods ppr :: TopLevelFlag -> SDoc Source # pprPrec :: Rational -> TopLevelFlag -> SDoc Source #
Outputable LexicalFixity Source # |
Instance details Defined in BasicTypes Methods ppr :: LexicalFixity -> SDoc Source # pprPrec :: Rational -> LexicalFixity -> SDoc Source #
Outputable FixityDirection Source # |
Instance details Defined in BasicTypes Methods ppr :: FixityDirection -> SDoc Source # pprPrec :: Rational -> FixityDirection -> SDoc Source #
Outputable Fixity Source # |
Instance details Defined in BasicTypes Methods ppr :: Fixity -> SDoc Source # pprPrec :: Rational -> Fixity -> SDoc Source #
Outputable WarningTxt Source # |
Instance details Defined in BasicTypes Methods ppr :: WarningTxt -> SDoc Source # pprPrec :: Rational -> WarningTxt -> SDoc Source #
Outputable StringLiteral Source # |
Instance details Defined in BasicTypes Methods ppr :: StringLiteral -> SDoc Source # pprPrec :: Rational -> StringLiteral -> SDoc Source #
Outputable FunctionOrData Source # |
Instance details Defined in BasicTypes Methods ppr :: FunctionOrData -> SDoc Source # pprPrec :: Rational -> FunctionOrData -> SDoc Source #
Outputable SwapFlag Source # |
Instance details Defined in BasicTypes Methods ppr :: SwapFlag -> SDoc Source # pprPrec :: Rational -> SwapFlag -> SDoc Source #
Outputable OneShotInfo Source # |
Instance details Defined in BasicTypes Methods ppr :: OneShotInfo -> SDoc Source # pprPrec :: Rational -> OneShotInfo -> SDoc Source #
Outputable LeftOrRight Source # |
Instance details Defined in BasicTypes Methods ppr :: LeftOrRight -> SDoc Source # pprPrec :: Rational -> LeftOrRight -> SDoc Source #
Outputable Unique Source # |
Instance details Defined in Unique Methods ppr :: Unique -> SDoc Source # pprPrec :: Rational -> Unique -> SDoc Source #
Outputable RegClass Source # |
Instance details Defined in RegClass Methods ppr :: RegClass -> SDoc Source # pprPrec :: Rational -> RegClass -> SDoc Source #
Outputable Reg Source # | 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 Source # pprPrec :: Rational -> Reg -> SDoc Source #
Outputable RealReg Source # |
Instance details Defined in Reg Methods ppr :: RealReg -> SDoc Source # pprPrec :: Rational -> RealReg -> SDoc Source #
Outputable VirtualReg Source # |
Instance details Defined in Reg Methods ppr :: VirtualReg -> SDoc Source # pprPrec :: Rational -> VirtualReg -> SDoc Source #
Outputable LabelSet Source # |
Instance details Defined in Hoopl.Label Methods ppr :: LabelSet -> SDoc Source # pprPrec :: Rational -> LabelSet -> SDoc Source #
Outputable Label Source # |
Instance details Defined in Hoopl.Label Methods ppr :: Label -> SDoc Source # pprPrec :: Rational -> Label -> SDoc Source #
Outputable DefUnitId Source # |
Instance details Defined in Module Methods ppr :: DefUnitId -> SDoc Source # pprPrec :: Rational -> DefUnitId -> SDoc Source #
Outputable InstalledModule Source # |
Instance details Defined in Module Methods ppr :: InstalledModule -> SDoc Source # pprPrec :: Rational -> InstalledModule -> SDoc Source #
Outputable IndefModule Source # |
Instance details Defined in Module Methods ppr :: IndefModule -> SDoc Source # pprPrec :: Rational -> IndefModule -> SDoc Source #
Outputable IndefUnitId Source # |
Instance details Defined in Module Methods ppr :: IndefUnitId -> SDoc Source # pprPrec :: Rational -> IndefUnitId -> SDoc Source #
Outputable ModLocation Source # |
Instance details Defined in Module Methods ppr :: ModLocation -> SDoc Source # pprPrec :: Rational -> ModLocation -> SDoc Source #
Outputable PackageName Source # |
Instance details Defined in PackageConfig Methods ppr :: PackageName -> SDoc Source # pprPrec :: Rational -> PackageName -> SDoc Source #
Outputable SourcePackageId Source # |
Instance details Defined in PackageConfig Methods ppr :: SourcePackageId -> SDoc Source # pprPrec :: Rational -> SourcePackageId -> SDoc Source #
Outputable CType Source # |
Instance details Defined in ForeignCall Methods ppr :: CType -> SDoc Source # pprPrec :: Rational -> CType -> SDoc Source #
Outputable Header Source # |
Instance details Defined in ForeignCall Methods ppr :: Header -> SDoc Source # pprPrec :: Rational -> Header -> SDoc Source #
Outputable CCallConv Source # |
Instance details Defined in ForeignCall Methods ppr :: CCallConv -> SDoc Source # pprPrec :: Rational -> CCallConv -> SDoc Source #
Outputable CCallSpec Source # |
Instance details Defined in ForeignCall Methods ppr :: CCallSpec -> SDoc Source # pprPrec :: Rational -> CCallSpec -> SDoc Source #
Outputable CExportSpec Source # |
Instance details Defined in ForeignCall Methods ppr :: CExportSpec -> SDoc Source # pprPrec :: Rational -> CExportSpec -> SDoc Source #
Outputable Safety Source # |
Instance details Defined in ForeignCall Methods ppr :: Safety -> SDoc Source # pprPrec :: Rational -> Safety -> SDoc Source #
Outputable ForeignCall Source # |
Instance details Defined in ForeignCall Methods ppr :: ForeignCall -> SDoc Source # pprPrec :: Rational -> ForeignCall -> SDoc Source #
Outputable Phase Source # |
Instance details Defined in DriverPhases Methods ppr :: Phase -> SDoc Source # pprPrec :: Rational -> Phase -> SDoc Source #
Outputable WarnReason Source # |
Instance details Defined in CmdLineParser Methods ppr :: WarnReason -> SDoc Source # pprPrec :: Rational -> WarnReason -> SDoc Source #
Outputable PackageFlag Source # |
Instance details Defined in DynFlags Methods ppr :: PackageFlag -> SDoc Source # pprPrec :: Rational -> PackageFlag -> SDoc Source #
Outputable ModRenaming Source # |
Instance details Defined in DynFlags Methods ppr :: ModRenaming -> SDoc Source # pprPrec :: Rational -> ModRenaming -> SDoc Source #
Outputable PackageArg Source # |
Instance details Defined in DynFlags Methods ppr :: PackageArg -> SDoc Source # pprPrec :: Rational -> PackageArg -> SDoc Source #
Outputable GhcMode Source # |
Instance details Defined in DynFlags Methods ppr :: GhcMode -> SDoc Source # pprPrec :: Rational -> GhcMode -> SDoc Source #
Outputable SafeHaskellMode Source # |
Instance details Defined in DynFlags Methods ppr :: SafeHaskellMode -> SDoc Source # pprPrec :: Rational -> SafeHaskellMode -> SDoc Source #
Outputable Language Source # |
Instance details Defined in DynFlags Methods ppr :: Language -> SDoc Source # pprPrec :: Rational -> Language -> SDoc Source #
Outputable WarnReason Source # |
Instance details Defined in DynFlags Methods ppr :: WarnReason -> SDoc Source # pprPrec :: Rational -> WarnReason -> SDoc Source #
Outputable ArgDescr Source # |
Instance details Defined in SMRep Methods ppr :: ArgDescr -> SDoc Source # pprPrec :: Rational -> ArgDescr -> SDoc Source #
Outputable ClosureTypeInfo Source # |
Instance details Defined in SMRep Methods ppr :: ClosureTypeInfo -> SDoc Source # pprPrec :: Rational -> ClosureTypeInfo -> SDoc Source #
Outputable SMRep Source # |
Instance details Defined in SMRep Methods ppr :: SMRep -> SDoc Source # pprPrec :: Rational -> SMRep -> SDoc Source #
Outputable StgHalfWord Source # |
Instance details Defined in SMRep Methods ppr :: StgHalfWord -> SDoc Source # pprPrec :: Rational -> StgHalfWord -> SDoc Source #
Outputable StgWord Source # |
Instance details Defined in SMRep Methods ppr :: StgWord -> SDoc Source # pprPrec :: Rational -> StgWord -> SDoc Source #
Outputable Annotation Source # |
Instance details Defined in Annotations Methods ppr :: Annotation -> SDoc Source # pprPrec :: Rational -> Annotation -> SDoc Source #
Outputable ModuleOrigin Source # |
Instance details Defined in Packages Methods ppr :: ModuleOrigin -> SDoc Source # pprPrec :: Rational -> ModuleOrigin -> SDoc Source #
Outputable ForeignHint Source # |
Instance details Defined in PprCmmDecl Methods ppr :: ForeignHint -> SDoc Source # pprPrec :: Rational -> ForeignHint -> SDoc Source #
Outputable Width Source # |
Instance details Defined in CmmType Methods ppr :: Width -> SDoc Source # pprPrec :: Rational -> Width -> SDoc Source #
Outputable CmmType Source # |
Instance details Defined in CmmType Methods ppr :: CmmType -> SDoc Source # pprPrec :: Rational -> CmmType -> SDoc Source #
Outputable AvailInfo Source # |
Instance details Defined in Avail Methods ppr :: AvailInfo -> SDoc Source # pprPrec :: Rational -> AvailInfo -> SDoc Source #
Outputable ImportSpec Source # |
Instance details Defined in RdrName Methods ppr :: ImportSpec -> SDoc Source # pprPrec :: Rational -> ImportSpec -> SDoc Source #
Outputable Parent Source # |
Instance details Defined in RdrName Methods ppr :: Parent -> SDoc Source # pprPrec :: Rational -> Parent -> SDoc Source #
Outputable GlobalRdrElt Source # |
Instance details Defined in RdrName Methods ppr :: GlobalRdrElt -> SDoc Source # pprPrec :: Rational -> GlobalRdrElt -> SDoc Source #
Outputable LocalRdrEnv Source # |
Instance details Defined in RdrName Methods ppr :: LocalRdrEnv -> SDoc Source # pprPrec :: Rational -> LocalRdrEnv -> SDoc Source #
Outputable RdrName Source # |
Instance details Defined in RdrName Methods ppr :: RdrName -> SDoc Source # pprPrec :: Rational -> RdrName -> SDoc Source #
Outputable AnnotationComment Source # |
Instance details Defined in ApiAnnotation Methods ppr :: AnnotationComment -> SDoc Source # pprPrec :: Rational -> AnnotationComment -> SDoc Source #
Outputable AnnKeywordId Source # |
Instance details Defined in ApiAnnotation Methods ppr :: AnnKeywordId -> SDoc Source # pprPrec :: Rational -> AnnKeywordId -> SDoc Source #
Outputable Token Source # |
Instance details Defined in Lexer Methods ppr :: Token -> SDoc Source # pprPrec :: Rational -> Token -> SDoc Source #
Outputable ArgFlag Source # |
Instance details Defined in Var Methods ppr :: ArgFlag -> SDoc Source # pprPrec :: Rational -> ArgFlag -> SDoc Source #
Outputable Var Source # |
Instance details Defined in Var Methods ppr :: Var -> SDoc Source # pprPrec :: Rational -> Var -> SDoc Source #
Outputable PatSyn Source # |
Instance details Defined in PatSyn Methods ppr :: PatSyn -> SDoc Source # pprPrec :: Rational -> PatSyn -> SDoc Source #
Outputable IfaceCoercion Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceCoercion -> SDoc Source # pprPrec :: Rational -> IfaceCoercion -> SDoc Source #
Outputable IfaceTyLit Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceTyLit -> SDoc Source # pprPrec :: Rational -> IfaceTyLit -> SDoc Source #
Outputable IfaceTyCon Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceTyCon -> SDoc Source # pprPrec :: Rational -> IfaceTyCon -> SDoc Source #
Outputable IfaceType Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceType -> SDoc Source # pprPrec :: Rational -> IfaceType -> SDoc Source #
Outputable IfaceTcArgs Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceTcArgs -> SDoc Source # pprPrec :: Rational -> IfaceTcArgs -> SDoc Source #
Outputable EqSpec Source # |
Instance details Defined in DataCon Methods ppr :: EqSpec -> SDoc Source # pprPrec :: Rational -> EqSpec -> SDoc Source #
Outputable DataCon Source # |
Instance details Defined in DataCon Methods ppr :: DataCon -> SDoc Source # pprPrec :: Rational -> DataCon -> SDoc Source #
Outputable ConLike Source # |
Instance details Defined in ConLike Methods ppr :: ConLike -> SDoc Source # pprPrec :: Rational -> ConLike -> SDoc Source #
Outputable CostCentreStack Source # |
Instance details Defined in CostCentre Methods ppr :: CostCentreStack -> SDoc Source # pprPrec :: Rational -> CostCentreStack -> SDoc Source #
Outputable CostCentre Source # |
Instance details Defined in CostCentre Methods ppr :: CostCentre -> SDoc Source # pprPrec :: Rational -> CostCentre -> SDoc Source #
Outputable CoAxiomRule Source # |
Instance details Defined in CoAxiom Methods ppr :: CoAxiomRule -> SDoc Source # pprPrec :: Rational -> CoAxiomRule -> SDoc Source #
Outputable Role Source # |
Instance details Defined in CoAxiom Methods ppr :: Role -> SDoc Source # pprPrec :: Rational -> Role -> SDoc Source #
Outputable CoAxBranch Source # |
Instance details Defined in CoAxiom Methods ppr :: CoAxBranch -> SDoc Source # pprPrec :: Rational -> CoAxBranch -> SDoc Source #
Outputable LiftingContext Source # |
Instance details Defined in Coercion Methods ppr :: LiftingContext -> SDoc Source # pprPrec :: Rational -> LiftingContext -> SDoc Source #
Outputable Class Source # |
Instance details Defined in Class Methods ppr :: Class -> SDoc Source # pprPrec :: Rational -> Class -> SDoc Source #
Outputable TyConFlavour Source # |
Instance details Defined in TyCon Methods ppr :: TyConFlavour -> SDoc Source # pprPrec :: Rational -> TyConFlavour -> SDoc Source #
Outputable PrimElemRep Source # |
Instance details Defined in TyCon Methods ppr :: PrimElemRep -> SDoc Source # pprPrec :: Rational -> PrimElemRep -> SDoc Source #
Outputable PrimRep Source # |
Instance details Defined in TyCon Methods ppr :: PrimRep -> SDoc Source # pprPrec :: Rational -> PrimRep -> SDoc Source #
Outputable FamTyConFlav Source # |
Instance details Defined in TyCon Methods ppr :: FamTyConFlav -> SDoc Source # pprPrec :: Rational -> FamTyConFlav -> SDoc Source #
Outputable AlgTyConFlav Source # |
Instance details Defined in TyCon Methods ppr :: AlgTyConFlav -> SDoc Source # pprPrec :: Rational -> AlgTyConFlav -> SDoc Source #
Outputable IfaceBndr Source # |
Instance details Defined in IfaceType Methods ppr :: IfaceBndr -> SDoc Source # pprPrec :: Rational -> IfaceBndr -> SDoc Source #
Outputable InScopeSet Source # |
Instance details Defined in VarEnv Methods ppr :: InScopeSet -> SDoc Source # pprPrec :: Rational -> InScopeSet -> SDoc Source #
Outputable CoercionHole Source # |
Instance details Defined in TyCoRep Methods ppr :: CoercionHole -> SDoc Source # pprPrec :: Rational -> CoercionHole -> SDoc Source #
Outputable EqRel Source # |
Instance details Defined in Type Methods ppr :: EqRel -> SDoc Source # pprPrec :: Rational -> EqRel -> SDoc Source #
Outputable Literal Source # |
Instance details Defined in Literal Methods ppr :: Literal -> SDoc Source # pprPrec :: Rational -> Literal -> SDoc Source #
Outputable StrictnessMark Source # |
Instance details Defined in DataCon Methods ppr :: StrictnessMark -> SDoc Source # pprPrec :: Rational -> StrictnessMark -> SDoc Source #
Outputable SrcUnpackedness Source # |
Instance details Defined in DataCon Methods ppr :: SrcUnpackedness -> SDoc Source # pprPrec :: Rational -> SrcUnpackedness -> SDoc Source #
Outputable SrcStrictness Source # |
Instance details Defined in DataCon Methods ppr :: SrcStrictness -> SDoc Source # pprPrec :: Rational -> SrcStrictness -> SDoc Source #
Outputable HsImplBang Source # |
Instance details Defined in DataCon Methods ppr :: HsImplBang -> SDoc Source # pprPrec :: Rational -> HsImplBang -> SDoc Source #
Outputable HsSrcBang Source # |
Instance details Defined in DataCon Methods ppr :: HsSrcBang -> SDoc Source # pprPrec :: Rational -> HsSrcBang -> SDoc Source #
Outputable SlotTy Source # |
Instance details Defined in RepType Methods ppr :: SlotTy -> SDoc Source # pprPrec :: Rational -> SlotTy -> SDoc Source #
Outputable StrictSig Source # |
Instance details Defined in Demand Methods ppr :: StrictSig -> SDoc Source # pprPrec :: Rational -> StrictSig -> SDoc Source #
Outputable DmdType Source # |
Instance details Defined in Demand Methods ppr :: DmdType -> SDoc Source # pprPrec :: Rational -> DmdType -> SDoc Source #
Outputable CPRResult Source # |
Instance details Defined in Demand Methods ppr :: CPRResult -> SDoc Source # pprPrec :: Rational -> CPRResult -> SDoc Source #
Outputable TypeShape Source # |
Instance details Defined in Demand Methods ppr :: TypeShape -> SDoc Source # pprPrec :: Rational -> TypeShape -> SDoc Source #
Outputable Count Source # |
Instance details Defined in Demand Methods ppr :: Count -> SDoc Source # pprPrec :: Rational -> Count -> SDoc Source #
Outputable UseDmd Source # |
Instance details Defined in Demand Methods ppr :: UseDmd -> SDoc Source # pprPrec :: Rational -> UseDmd -> SDoc Source #
Outputable StrDmd Source # |
Instance details Defined in Demand Methods ppr :: StrDmd -> SDoc Source # pprPrec :: Rational -> StrDmd -> SDoc Source #
Outputable UnfoldingGuidance Source # |
Instance details Defined in PprCore Methods ppr :: UnfoldingGuidance -> SDoc Source # pprPrec :: Rational -> UnfoldingGuidance -> SDoc Source #
Outputable UnfoldingSource Source # |
Instance details Defined in PprCore Methods ppr :: UnfoldingSource -> SDoc Source # pprPrec :: Rational -> UnfoldingSource -> SDoc Source #
Outputable Unfolding Source # |
Instance details Defined in PprCore Methods ppr :: Unfolding -> SDoc Source # pprPrec :: Rational -> Unfolding -> SDoc Source #
Outputable CoreVect Source # |
Instance details Defined in PprCore Methods ppr :: CoreVect -> SDoc Source # pprPrec :: Rational -> CoreVect -> SDoc Source #
Outputable CoreRule Source # |
Instance details Defined in PprCore Methods ppr :: CoreRule -> SDoc Source # pprPrec :: Rational -> CoreRule -> SDoc Source #
Outputable AltCon Source # |
Instance details Defined in CoreSyn Methods ppr :: AltCon -> SDoc Source # pprPrec :: Rational -> AltCon -> SDoc Source #
Outputable FamInstMatch Source # |
Instance details Defined in FamInstEnv Methods ppr :: FamInstMatch -> SDoc Source # pprPrec :: Rational -> FamInstMatch -> SDoc Source #
Outputable FamInst Source # |
Instance details Defined in FamInstEnv Methods ppr :: FamInst -> SDoc Source # pprPrec :: Rational -> FamInst -> SDoc Source #
Outputable LevityInfo Source # |
Instance details Defined in IdInfo Methods ppr :: LevityInfo -> SDoc Source # pprPrec :: Rational -> LevityInfo -> SDoc Source #
Outputable TickBoxOp Source # |
Instance details Defined in IdInfo Methods ppr :: TickBoxOp -> SDoc Source # pprPrec :: Rational -> TickBoxOp -> SDoc Source #
Outputable CafInfo Source # |
Instance details Defined in IdInfo Methods ppr :: CafInfo -> SDoc Source # pprPrec :: Rational -> CafInfo -> SDoc Source #
Outputable RecSelParent Source # |
Instance details Defined in IdInfo Methods ppr :: RecSelParent -> SDoc Source # pprPrec :: Rational -> RecSelParent -> SDoc Source #
Outputable UnVarGraph Source # |
Instance details Defined in UnVarGraph Methods ppr :: UnVarGraph -> SDoc Source # pprPrec :: Rational -> UnVarGraph -> SDoc Source #
Outputable UnVarSet Source # |
Instance details Defined in UnVarGraph Methods ppr :: UnVarSet -> SDoc Source # pprPrec :: Rational -> UnVarSet -> SDoc Source #
Outputable PrimCall Source # |
Instance details Defined in PrimOp Methods ppr :: PrimCall -> SDoc Source # pprPrec :: Rational -> PrimCall -> SDoc Source #
Outputable CgBreakInfo Source # |
Instance details Defined in ByteCodeTypes Methods ppr :: CgBreakInfo -> SDoc Source # pprPrec :: Rational -> CgBreakInfo -> SDoc Source #
Outputable UnlinkedBCO Source # |
Instance details Defined in ByteCodeTypes Methods ppr :: UnlinkedBCO -> SDoc Source # pprPrec :: Rational -> UnlinkedBCO -> SDoc Source #
Outputable CompiledByteCode Source # |
Instance details Defined in ByteCodeTypes Methods ppr :: CompiledByteCode -> SDoc Source # pprPrec :: Rational -> CompiledByteCode -> SDoc Source #
Outputable CoreStats Source # |
Instance details Defined in CoreStats Methods ppr :: CoreStats -> SDoc Source # pprPrec :: Rational -> CoreStats -> SDoc Source #
Outputable UpdateFlag Source # |
Instance details Defined in StgSyn Methods ppr :: UpdateFlag -> SDoc Source # pprPrec :: Rational -> UpdateFlag -> SDoc Source #
Outputable AltType Source # |
Instance details Defined in StgSyn Methods ppr :: AltType -> SDoc Source # pprPrec :: Rational -> AltType -> SDoc Source #
Outputable ShowHowMuch Source # |
Instance details Defined in IfaceSyn Methods ppr :: ShowHowMuch -> SDoc Source # pprPrec :: Rational -> ShowHowMuch -> SDoc Source #
Outputable IfaceJoinInfo Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceJoinInfo -> SDoc Source # pprPrec :: Rational -> IfaceJoinInfo -> SDoc Source #
Outputable IfaceConAlt Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceConAlt -> SDoc Source # pprPrec :: Rational -> IfaceConAlt -> SDoc Source #
Outputable IfaceExpr Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceExpr -> SDoc Source # pprPrec :: Rational -> IfaceExpr -> SDoc Source #
Outputable IfaceIdDetails Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceIdDetails -> SDoc Source # pprPrec :: Rational -> IfaceIdDetails -> SDoc Source #
Outputable IfaceUnfolding Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceUnfolding -> SDoc Source # pprPrec :: Rational -> IfaceUnfolding -> SDoc Source #
Outputable IfaceInfoItem Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceInfoItem -> SDoc Source # pprPrec :: Rational -> IfaceInfoItem -> SDoc Source #
Outputable IfaceIdInfo Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceIdInfo -> SDoc Source # pprPrec :: Rational -> IfaceIdInfo -> SDoc Source #
Outputable IfaceCompleteMatch Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceCompleteMatch -> SDoc Source # pprPrec :: Rational -> IfaceCompleteMatch -> SDoc Source #
Outputable IfaceAnnotation Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceAnnotation -> SDoc Source # pprPrec :: Rational -> IfaceAnnotation -> SDoc Source #
Outputable IfaceRule Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceRule -> SDoc Source # pprPrec :: Rational -> IfaceRule -> SDoc Source #
Outputable IfaceFamInst Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceFamInst -> SDoc Source # pprPrec :: Rational -> IfaceFamInst -> SDoc Source #
Outputable IfaceClsInst Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceClsInst -> SDoc Source # pprPrec :: Rational -> IfaceClsInst -> SDoc Source #
Outputable IfaceAT Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceAT -> SDoc Source # pprPrec :: Rational -> IfaceAT -> SDoc Source #
Outputable IfaceClassOp Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceClassOp -> SDoc Source # pprPrec :: Rational -> IfaceClassOp -> SDoc Source #
Outputable IfaceTyConParent Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceTyConParent -> SDoc Source # pprPrec :: Rational -> IfaceTyConParent -> SDoc Source #
Outputable IfaceDecl Source # |
Instance details Defined in IfaceSyn Methods ppr :: IfaceDecl -> SDoc Source # pprPrec :: Rational -> IfaceDecl -> SDoc Source #
Outputable ForeignLabelSource Source # |
Instance details Defined in CLabel Methods ppr :: ForeignLabelSource -> SDoc Source # pprPrec :: Rational -> ForeignLabelSource -> SDoc Source #
Outputable CLabel Source # |
Instance details Defined in CLabel Methods ppr :: CLabel -> SDoc Source # pprPrec :: Rational -> CLabel -> SDoc Source #
Outputable GlobalReg Source # |
Instance details Defined in PprCmmExpr Methods ppr :: GlobalReg -> SDoc Source # pprPrec :: Rational -> GlobalReg -> SDoc Source #
Outputable LocalReg Source # |
Instance details Defined in PprCmmExpr Methods ppr :: LocalReg -> SDoc Source # pprPrec :: Rational -> LocalReg -> SDoc Source #
Outputable CmmLit Source # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmLit -> SDoc Source # pprPrec :: Rational -> CmmLit -> SDoc Source #
Outputable Area Source # |
Instance details Defined in PprCmmExpr Methods ppr :: Area -> SDoc Source # pprPrec :: Rational -> Area -> SDoc Source #
Outputable CmmReg Source # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmReg -> SDoc Source # pprPrec :: Rational -> CmmReg -> SDoc Source #
Outputable CmmExpr Source # |
Instance details Defined in PprCmmExpr Methods ppr :: CmmExpr -> SDoc Source # pprPrec :: Rational -> CmmExpr -> SDoc Source #
Outputable CmmTickScope Source # |
Instance details Defined in CmmNode Methods ppr :: CmmTickScope -> SDoc Source # pprPrec :: Rational -> CmmTickScope -> SDoc Source #
Outputable ForeignTarget Source # |
Instance details Defined in PprCmm Methods ppr :: ForeignTarget -> SDoc Source # pprPrec :: Rational -> ForeignTarget -> SDoc Source #
Outputable CmmReturnInfo Source # |
Instance details Defined in PprCmm Methods ppr :: CmmReturnInfo -> SDoc Source # pprPrec :: Rational -> CmmReturnInfo -> SDoc Source #
Outputable ForeignConvention Source # |
Instance details Defined in PprCmm Methods ppr :: ForeignConvention -> SDoc Source # pprPrec :: Rational -> ForeignConvention -> SDoc Source #
Outputable Convention Source # |
Instance details Defined in PprCmm Methods ppr :: Convention -> SDoc Source # pprPrec :: Rational -> Convention -> SDoc Source #
Outputable CmmStatics Source # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmStatics -> SDoc Source # pprPrec :: Rational -> CmmStatics -> SDoc Source #
Outputable CmmStatic Source # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmStatic -> SDoc Source # pprPrec :: Rational -> CmmStatic -> SDoc Source #
Outputable C_SRT Source # |
Instance details Defined in PprCmmDecl Methods ppr :: C_SRT -> SDoc Source # pprPrec :: Rational -> C_SRT -> SDoc Source #
Outputable CmmInfoTable Source # |
Instance details Defined in PprCmmDecl Methods ppr :: CmmInfoTable -> SDoc Source # pprPrec :: Rational -> CmmInfoTable -> SDoc Source #
Outputable CmmStackInfo Source # |
Instance details Defined in PprCmm Methods ppr :: CmmStackInfo -> SDoc Source # pprPrec :: Rational -> CmmStackInfo -> SDoc Source #
Outputable CmmTopInfo Source # |
Instance details Defined in PprCmm Methods ppr :: CmmTopInfo -> SDoc Source # pprPrec :: Rational -> CmmTopInfo -> SDoc Source #
Outputable CmmGraph Source # |
Instance details Defined in PprCmm Methods ppr :: CmmGraph -> SDoc Source # pprPrec :: Rational -> CmmGraph -> SDoc Source #
Outputable LlvmCastOp Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCastOp -> SDoc Source # pprPrec :: Rational -> LlvmCastOp -> SDoc Source #
Outputable LlvmCmpOp Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCmpOp -> SDoc Source # pprPrec :: Rational -> LlvmCmpOp -> SDoc Source #
Outputable LlvmMachOp Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmMachOp -> SDoc Source # pprPrec :: Rational -> LlvmMachOp -> SDoc Source #
Outputable LlvmLinkageType Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmLinkageType -> SDoc Source # pprPrec :: Rational -> LlvmLinkageType -> SDoc Source #
Outputable LlvmCallConvention Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmCallConvention -> SDoc Source # pprPrec :: Rational -> LlvmCallConvention -> SDoc Source #
Outputable LlvmFuncAttr Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmFuncAttr -> SDoc Source # pprPrec :: Rational -> LlvmFuncAttr -> SDoc Source #
Outputable LlvmParamAttr Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmParamAttr -> SDoc Source # pprPrec :: Rational -> LlvmParamAttr -> SDoc Source #
Outputable LlvmFunctionDecl Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmFunctionDecl -> SDoc Source # pprPrec :: Rational -> LlvmFunctionDecl -> SDoc Source #
Outputable LlvmStatic Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmStatic -> SDoc Source # pprPrec :: Rational -> LlvmStatic -> SDoc Source #
Outputable LlvmLit Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmLit -> SDoc Source # pprPrec :: Rational -> LlvmLit -> SDoc Source #
Outputable LlvmVar Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmVar -> SDoc Source # pprPrec :: Rational -> LlvmVar -> SDoc Source #
Outputable LlvmType Source # |
Instance details Defined in Llvm.Types Methods ppr :: LlvmType -> SDoc Source # pprPrec :: Rational -> LlvmType -> SDoc Source #
Outputable MetaExpr Source # |
Instance details Defined in Llvm.MetaData Methods ppr :: MetaExpr -> SDoc Source # pprPrec :: Rational -> MetaExpr -> SDoc Source #
Outputable MetaId Source # |
Instance details Defined in Llvm.MetaData Methods ppr :: MetaId -> SDoc Source # pprPrec :: Rational -> MetaId -> SDoc Source #
Outputable LiveInfo Source # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: LiveInfo -> SDoc Source # pprPrec :: Rational -> LiveInfo -> SDoc Source #
Outputable Loc Source # |
Instance details Defined in RegAlloc.Linear.Base Methods ppr :: Loc -> SDoc Source # pprPrec :: Rational -> Loc -> SDoc Source #
Outputable SpillStats Source # |
Instance details Defined in RegAlloc.Graph.Spill Methods ppr :: SpillStats -> SDoc Source # pprPrec :: Rational -> SpillStats -> SDoc Source #
Outputable UnwindExpr Source # |
Instance details Defined in Debug Methods ppr :: UnwindExpr -> SDoc Source # pprPrec :: Rational -> UnwindExpr -> SDoc Source #
Outputable UnwindPoint Source # |
Instance details Defined in Debug Methods ppr :: UnwindPoint -> SDoc Source # pprPrec :: Rational -> UnwindPoint -> SDoc Source #
Outputable DebugBlock Source # |
Instance details Defined in Debug Methods ppr :: DebugBlock -> SDoc Source # pprPrec :: Rational -> DebugBlock -> SDoc Source #
Outputable Status Source # |
Instance details Defined in CmmProcPoint Methods ppr :: Status -> SDoc Source # pprPrec :: Rational -> Status -> SDoc Source #
Outputable ParamLocation Source # |
Instance details Defined in CmmCallConv Methods ppr :: ParamLocation -> SDoc Source # pprPrec :: Rational -> ParamLocation -> SDoc Source #
Outputable TopSRT Source # |
Instance details Defined in CmmBuildInfoTables Methods ppr :: TopSRT -> SDoc Source # pprPrec :: Rational -> TopSRT -> SDoc Source #
Outputable CandidatesQTvs Source # |
Instance details Defined in TcType Methods ppr :: CandidatesQTvs -> SDoc Source # pprPrec :: Rational -> CandidatesQTvs -> SDoc Source #
Outputable TcLevel Source # |
Instance details Defined in TcType Methods ppr :: TcLevel -> SDoc Source # pprPrec :: Rational -> TcLevel -> SDoc Source #
Outputable InferResult Source # |
Instance details Defined in TcType Methods ppr :: InferResult -> SDoc Source # pprPrec :: Rational -> InferResult -> SDoc Source #
Outputable ExpType Source # |
Instance details Defined in TcType Methods ppr :: ExpType -> SDoc Source # pprPrec :: Rational -> ExpType -> SDoc Source #
Outputable EvCallStack Source # |
Instance details Defined in TcEvidence Methods ppr :: EvCallStack -> SDoc Source # pprPrec :: Rational -> EvCallStack -> SDoc Source #
Outputable EvLit Source # |
Instance details Defined in TcEvidence Methods ppr :: EvLit -> SDoc Source # pprPrec :: Rational -> EvLit -> SDoc Source #
Outputable EvTypeable Source # |
Instance details Defined in TcEvidence Methods ppr :: EvTypeable -> SDoc Source # pprPrec :: Rational -> EvTypeable -> SDoc Source #
Outputable EvTerm Source # |
Instance details Defined in TcEvidence Methods ppr :: EvTerm -> SDoc Source # pprPrec :: Rational -> EvTerm -> SDoc Source #
Outputable EvBind Source # |
Instance details Defined in TcEvidence Methods ppr :: EvBind -> SDoc Source # pprPrec :: Rational -> EvBind -> SDoc Source #
Outputable EvBindMap Source # |
Instance details Defined in TcEvidence Methods ppr :: EvBindMap -> SDoc Source # pprPrec :: Rational -> EvBindMap -> SDoc Source #
Outputable EvBindsVar Source # |
Instance details Defined in TcEvidence Methods ppr :: EvBindsVar -> SDoc Source # pprPrec :: Rational -> EvBindsVar -> SDoc Source #
Outputable TcEvBinds Source # |
Instance details Defined in TcEvidence Methods ppr :: TcEvBinds -> SDoc Source # pprPrec :: Rational -> TcEvBinds -> SDoc Source #
Outputable HsWrapper Source # |
Instance details Defined in TcEvidence Methods ppr :: HsWrapper -> SDoc Source # pprPrec :: Rational -> HsWrapper -> SDoc Source #
Outputable HsTyLit Source # |
Instance details Defined in HsTypes Methods ppr :: HsTyLit -> SDoc Source # pprPrec :: Rational -> HsTyLit -> SDoc Source #
Outputable HsIPName Source # |
Instance details Defined in HsTypes Methods ppr :: HsIPName -> SDoc Source # pprPrec :: Rational -> HsIPName -> SDoc Source #
Outputable OverLitVal Source # |
Instance details Defined in HsLit Methods ppr :: OverLitVal -> SDoc Source # pprPrec :: Rational -> OverLitVal -> SDoc Source #
Outputable TcSpecPrag Source # |
Instance details Defined in HsBinds Methods ppr :: TcSpecPrag -> SDoc Source # pprPrec :: Rational -> TcSpecPrag -> SDoc Source #
Outputable CgLoc Source # |
Instance details Defined in StgCmmClosure Methods ppr :: CgLoc -> SDoc Source # pprPrec :: Rational -> CgLoc -> SDoc Source #
Outputable Sequel Source # |
Instance details Defined in StgCmmMonad Methods ppr :: Sequel -> SDoc Source # pprPrec :: Rational -> Sequel -> SDoc Source #
Outputable CgIdInfo Source # |
Instance details Defined in StgCmmMonad Methods ppr :: CgIdInfo -> SDoc Source # pprPrec :: Rational -> CgIdInfo -> SDoc Source #
Outputable ArgRep Source # |
Instance details Defined in StgCmmArgRep Methods ppr :: ArgRep -> SDoc Source # pprPrec :: Rational -> ArgRep -> SDoc Source #
Outputable ClsInst Source # |
Instance details Defined in InstEnv Methods ppr :: ClsInst -> SDoc Source # pprPrec :: Rational -> ClsInst -> SDoc Source #
Outputable DocDecl Source # |
Instance details Defined in HsDecls Methods ppr :: DocDecl -> SDoc Source # pprPrec :: Rational -> DocDecl -> SDoc Source #
Outputable ForeignExport Source # |
Instance details Defined in HsDecls Methods ppr :: ForeignExport -> SDoc Source # pprPrec :: Rational -> ForeignExport -> SDoc Source #
Outputable ForeignImport Source # |
Instance details Defined in HsDecls Methods ppr :: ForeignImport -> SDoc Source # pprPrec :: Rational -> ForeignImport -> SDoc Source #
Outputable NewOrData Source # |
Instance details Defined in HsDecls Methods ppr :: NewOrData -> SDoc Source # pprPrec :: Rational -> NewOrData -> SDoc Source #
Outputable PendingTcSplice Source # |
Instance details Defined in HsExpr Methods ppr :: PendingTcSplice -> SDoc Source # pprPrec :: Rational -> PendingTcSplice -> SDoc Source #
Outputable PendingRnSplice Source # |
Instance details Defined in HsExpr Methods ppr :: PendingRnSplice -> SDoc Source # pprPrec :: Rational -> PendingRnSplice -> SDoc Source #
Outputable SpliceDecoration Source # |
Instance details Defined in HsExpr Methods ppr :: SpliceDecoration -> SDoc Source # pprPrec :: Rational -> SpliceDecoration -> SDoc Source #
Outputable UnboundVar Source # |
Instance details Defined in HsExpr Methods ppr :: UnboundVar -> SDoc Source # pprPrec :: Rational -> UnboundVar -> SDoc Source #
Outputable PmLit Source # |
Instance details Defined in PmExpr Methods ppr :: PmLit -> SDoc Source # pprPrec :: Rational -> PmLit -> SDoc Source #
Outputable PmExpr Source # |
Instance details Defined in PmExpr Methods ppr :: PmExpr -> SDoc Source # pprPrec :: Rational -> PmExpr -> SDoc Source #
Outputable CompleteMatch Source # |
Instance details Defined in HscTypes Methods ppr :: CompleteMatch -> SDoc Source # pprPrec :: Rational -> CompleteMatch -> SDoc Source #
Outputable Unlinked Source # |
Instance details Defined in HscTypes Methods ppr :: Unlinked -> SDoc Source # pprPrec :: Rational -> Unlinked -> SDoc Source #
Outputable Linkable Source # |
Instance details Defined in HscTypes Methods ppr :: Linkable -> SDoc Source # pprPrec :: Rational -> Linkable -> SDoc Source #
Outputable IfaceTrustInfo Source # |
Instance details Defined in HscTypes Methods ppr :: IfaceTrustInfo -> SDoc Source # pprPrec :: Rational -> IfaceTrustInfo -> SDoc Source #
Outputable IfaceVectInfo Source # |
Instance details Defined in HscTypes Methods ppr :: IfaceVectInfo -> SDoc Source # pprPrec :: Rational -> IfaceVectInfo -> SDoc Source #
Outputable VectInfo Source # |
Instance details Defined in HscTypes Methods ppr :: VectInfo -> SDoc Source # pprPrec :: Rational -> VectInfo -> SDoc Source #
Outputable ModSummary Source # |
Instance details Defined in HscTypes Methods ppr :: ModSummary -> SDoc Source # pprPrec :: Rational -> ModSummary -> SDoc Source #
Outputable FixItem Source # |
Instance details Defined in HscTypes Methods ppr :: FixItem -> SDoc Source # pprPrec :: Rational -> FixItem -> SDoc Source #
Outputable Warnings Source # |
Instance details Defined in LoadIface Methods ppr :: Warnings -> SDoc Source # pprPrec :: Rational -> Warnings -> SDoc Source #
Outputable InteractiveImport Source # |
Instance details Defined in HscTypes Methods ppr :: InteractiveImport -> SDoc Source # pprPrec :: Rational -> InteractiveImport -> SDoc Source #
Outputable SptEntry Source # |
Instance details Defined in HscTypes Methods ppr :: SptEntry -> SDoc Source # pprPrec :: Rational -> SptEntry -> SDoc Source #
Outputable TargetId Source # |
Instance details Defined in HscTypes Methods ppr :: TargetId -> SDoc Source # pprPrec :: Rational -> TargetId -> SDoc Source #
Outputable Target Source # |
Instance details Defined in HscTypes Methods ppr :: Target -> SDoc Source # pprPrec :: Rational -> Target -> SDoc Source #
Outputable TypeOrKind Source # |
Instance details Defined in TcRnTypes Methods ppr :: TypeOrKind -> SDoc Source # pprPrec :: Rational -> TypeOrKind -> SDoc Source #
Outputable CtOrigin Source # |
Instance details Defined in TcRnTypes Methods ppr :: CtOrigin -> SDoc Source # pprPrec :: Rational -> CtOrigin -> SDoc Source #
Outputable SkolemInfo Source # |
Instance details Defined in TcRnTypes Methods ppr :: SkolemInfo -> SDoc Source # pprPrec :: Rational -> SkolemInfo -> SDoc Source #
Outputable SubGoalDepth Source # |
Instance details Defined in TcRnTypes Methods ppr :: SubGoalDepth -> SDoc Source # pprPrec :: Rational -> SubGoalDepth -> SDoc Source #
Outputable CtFlavour Source # |
Instance details Defined in TcRnTypes Methods ppr :: CtFlavour -> SDoc Source # pprPrec :: Rational -> CtFlavour -> SDoc Source #
Outputable CtEvidence Source # |
Instance details Defined in TcRnTypes Methods ppr :: CtEvidence -> SDoc Source # pprPrec :: Rational -> CtEvidence -> SDoc Source #
Outputable TcEvDest Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcEvDest -> SDoc Source # pprPrec :: Rational -> TcEvDest -> SDoc Source #
Outputable ImplicStatus Source # |
Instance details Defined in TcRnTypes Methods ppr :: ImplicStatus -> SDoc Source # pprPrec :: Rational -> ImplicStatus -> SDoc Source #
Outputable Implication Source # |
Instance details Defined in TcRnTypes Methods ppr :: Implication -> SDoc Source # pprPrec :: Rational -> Implication -> SDoc Source #
Outputable WantedConstraints Source # |
Instance details Defined in TcRnTypes Methods ppr :: WantedConstraints -> SDoc Source # pprPrec :: Rational -> WantedConstraints -> SDoc Source #
Outputable Hole Source # |
Instance details Defined in TcRnTypes Methods ppr :: Hole -> SDoc Source # pprPrec :: Rational -> Hole -> SDoc Source #
Outputable Ct Source # |
Instance details Defined in TcRnTypes Methods ppr :: Ct -> SDoc Source # pprPrec :: Rational -> Ct -> SDoc Source #
Outputable TcPatSynInfo Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcPatSynInfo -> SDoc Source # pprPrec :: Rational -> TcPatSynInfo -> SDoc Source #
Outputable TcIdSigInst Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcIdSigInst -> SDoc Source # pprPrec :: Rational -> TcIdSigInst -> SDoc Source #
Outputable TcIdSigInfo Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcIdSigInfo -> SDoc Source # pprPrec :: Rational -> TcIdSigInfo -> SDoc Source #
Outputable TcSigInfo Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcSigInfo -> SDoc Source # pprPrec :: Rational -> TcSigInfo -> SDoc Source #
Outputable WhereFrom Source # |
Instance details Defined in TcRnTypes Methods ppr :: WhereFrom -> SDoc Source # pprPrec :: Rational -> WhereFrom -> SDoc Source #
Outputable IdBindingInfo Source # |
Instance details Defined in TcRnTypes Methods ppr :: IdBindingInfo -> SDoc Source # pprPrec :: Rational -> IdBindingInfo -> SDoc Source #
Outputable PromotionErr Source # |
Instance details Defined in TcRnTypes Methods ppr :: PromotionErr -> SDoc Source # pprPrec :: Rational -> PromotionErr -> SDoc Source #
Outputable TcTyThing Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcTyThing -> SDoc Source # pprPrec :: Rational -> TcTyThing -> SDoc Source #
Outputable ThStage Source # |
Instance details Defined in TcRnTypes Methods ppr :: ThStage -> SDoc Source # pprPrec :: Rational -> ThStage -> SDoc Source #
Outputable TcBinder Source # |
Instance details Defined in TcRnTypes Methods ppr :: TcBinder -> SDoc Source # pprPrec :: Rational -> TcBinder -> SDoc Source #
Outputable PhasePlus Source # |
Instance details Defined in PipelineMonad Methods ppr :: PhasePlus -> SDoc Source # pprPrec :: Rational -> PhasePlus -> SDoc Source #
Outputable HsComponentId Source # |
Instance details Defined in BkpSyn Methods ppr :: HsComponentId -> SDoc Source # pprPrec :: Rational -> HsComponentId -> SDoc Source #
Outputable FloatBind Source # |
Instance details Defined in MkCore Methods ppr :: FloatBind -> SDoc Source # pprPrec :: Rational -> FloatBind -> SDoc Source #
Outputable Subst Source # |
Instance details Defined in CoreSubst Methods ppr :: Subst -> SDoc Source # pprPrec :: Rational -> Subst -> SDoc Source #
Outputable CallCtxt Source # |
Instance details Defined in CoreUnfold Methods ppr :: CallCtxt -> SDoc Source # pprPrec :: Rational -> CallCtxt -> SDoc Source #
Outputable ArgSummary Source # |
Instance details Defined in CoreUnfold Methods ppr :: ArgSummary -> SDoc Source # pprPrec :: Rational -> ArgSummary -> SDoc Source #
Outputable Tick Source # |
Instance details Defined in CoreMonad Methods ppr :: Tick -> SDoc Source # pprPrec :: Rational -> Tick -> SDoc Source #
Outputable FloatOutSwitches Source # |
Instance details Defined in CoreMonad Methods ppr :: FloatOutSwitches -> SDoc Source # pprPrec :: Rational -> FloatOutSwitches -> SDoc Source #
Outputable SimplMode Source # |
Instance details Defined in CoreMonad Methods ppr :: SimplMode -> SDoc Source # pprPrec :: Rational -> SimplMode -> SDoc Source #
Outputable CoreToDo Source # |
Instance details Defined in CoreMonad Methods ppr :: CoreToDo -> SDoc Source # pprPrec :: Rational -> CoreToDo -> SDoc Source #
Outputable LetFloats Source # |
Instance details Defined in SimplEnv Methods ppr :: LetFloats -> SDoc Source # pprPrec :: Rational -> LetFloats -> SDoc Source #
Outputable SimplSR Source # |
Instance details Defined in SimplEnv Methods ppr :: SimplSR -> SDoc Source # pprPrec :: Rational -> SimplSR -> SDoc Source #
Outputable SimplFloats Source # |
Instance details Defined in SimplEnv Methods ppr :: SimplFloats -> SDoc Source # pprPrec :: Rational -> SimplFloats -> SDoc Source #
Outputable ArgSpec Source # |
Instance details Defined in SimplUtils Methods ppr :: ArgSpec -> SDoc Source # pprPrec :: Rational -> ArgSpec -> SDoc Source #
Outputable DupFlag Source # |
Instance details Defined in SimplUtils Methods ppr :: DupFlag -> SDoc Source # pprPrec :: Rational -> DupFlag -> SDoc Source #
Outputable SimplCont Source # |
Instance details Defined in SimplUtils Methods ppr :: SimplCont -> SDoc Source # pprPrec :: Rational -> SimplCont -> SDoc Source #
Outputable FloatSpec Source # |
Instance details Defined in SetLevels Methods ppr :: FloatSpec -> SDoc Source # pprPrec :: Rational -> FloatSpec -> SDoc Source #
Outputable Level Source # |
Instance details Defined in SetLevels Methods ppr :: Level -> SDoc Source # pprPrec :: Rational -> Level -> SDoc Source #
Outputable HsSigCtxt Source # |
Instance details Defined in RnEnv Methods ppr :: HsSigCtxt -> SDoc Source # pprPrec :: Rational -> HsSigCtxt -> SDoc Source #
Outputable ChildLookupResult Source # |
Instance details Defined in RnEnv Methods ppr :: ChildLookupResult -> SDoc Source # pprPrec :: Rational -> ChildLookupResult -> SDoc Source #
Outputable ClosureType Source # |
Instance details Defined in RtClosureInspect Methods ppr :: ClosureType -> SDoc Source # pprPrec :: Rational -> ClosureType -> SDoc Source #
Outputable Term Source # |
Instance details Defined in RtClosureInspect Methods ppr :: Term -> SDoc Source # pprPrec :: Rational -> Term -> SDoc Source #
Outputable InertCans Source # |
Instance details Defined in TcSMonad Methods ppr :: InertCans -> SDoc Source # pprPrec :: Rational -> InertCans -> SDoc Source #
Outputable InertSet Source # |
Instance details Defined in TcSMonad Methods ppr :: InertSet -> SDoc Source # pprPrec :: Rational -> InertSet -> SDoc Source #
Outputable WorkList Source # |
Instance details Defined in TcSMonad Methods ppr :: WorkList -> SDoc Source # pprPrec :: Rational -> WorkList -> SDoc Source #
Outputable FlattenMode Source # |
Instance details Defined in TcFlatten Methods ppr :: FlattenMode -> SDoc Source # pprPrec :: Rational -> FlattenMode -> SDoc Source #
Outputable InferMode Source # |
Instance details Defined in TcSimplify Methods ppr :: InferMode -> SDoc Source # pprPrec :: Rational -> InferMode -> SDoc Source #
Outputable ThetaOrigin Source # |
Instance details Defined in TcDerivUtils Methods ppr :: ThetaOrigin -> SDoc Source # pprPrec :: Rational -> ThetaOrigin -> SDoc Source #
Outputable PredOrigin Source # |
Instance details Defined in TcDerivUtils Methods ppr :: PredOrigin -> SDoc Source # pprPrec :: Rational -> PredOrigin -> SDoc Source #
Outputable DerivSpecMechanism Source # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivSpecMechanism -> SDoc Source # pprPrec :: Rational -> DerivSpecMechanism -> SDoc Source #
Outputable DerivEnv Source # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivEnv -> SDoc Source # pprPrec :: Rational -> DerivEnv -> SDoc Source #
Outputable BCInstr Source # |
Instance details Defined in ByteCodeInstr Methods ppr :: BCInstr -> SDoc Source # pprPrec :: Rational -> BCInstr -> SDoc Source #
Outputable LetBndrSpec Source # |
Instance details Defined in TcPat Methods ppr :: LetBndrSpec -> SDoc Source # pprPrec :: Rational -> LetBndrSpec -> SDoc Source #
Outputable EquationInfo Source # |
Instance details Defined in DsMonad Methods ppr :: EquationInfo -> SDoc Source # pprPrec :: Rational -> EquationInfo -> SDoc Source #
Outputable DsMatchContext Source # |
Instance details Defined in DsMonad Methods ppr :: DsMatchContext -> SDoc Source # pprPrec :: Rational -> DsMatchContext -> SDoc Source #
Outputable CompRepr Source # |
Instance details Defined in Vectorise.Generic.Description Methods ppr :: CompRepr -> SDoc Source # pprPrec :: Rational -> CompRepr -> SDoc Source #
Outputable ProdRepr Source # |
Instance details Defined in Vectorise.Generic.Description Methods ppr :: ProdRepr -> SDoc Source # pprPrec :: Rational -> ProdRepr -> SDoc Source #
Outputable ConRepr Source # |
Instance details Defined in Vectorise.Generic.Description Methods ppr :: ConRepr -> SDoc Source # pprPrec :: Rational -> ConRepr -> SDoc Source #
Outputable SumRepr Source # |
Instance details Defined in Vectorise.Generic.Description Methods ppr :: SumRepr -> SDoc Source # pprPrec :: Rational -> SumRepr -> SDoc Source #
Outputable Instr Source # |
Instance details Defined in X86.Ppr Methods ppr :: Instr -> SDoc Source # pprPrec :: Rational -> Instr -> SDoc Source #
Outputable Instr Source # |
Instance details Defined in SPARC.Ppr Methods ppr :: Instr -> SDoc Source # pprPrec :: Rational -> Instr -> SDoc Source #
Outputable Instr Source # |
Instance details Defined in PPC.Ppr Methods ppr :: Instr -> SDoc Source # pprPrec :: Rational -> Instr -> SDoc Source #
Outputable DwarfFrameBlock Source # |
Instance details Defined in Dwarf.Types Methods ppr :: DwarfFrameBlock -> SDoc Source # pprPrec :: Rational -> DwarfFrameBlock -> SDoc Source #
Outputable CoreModule Source # |
Instance details Defined in GHC Methods ppr :: CoreModule -> SDoc Source # pprPrec :: Rational -> CoreModule -> SDoc Source #
Outputable a => Outputable [a] Source # |
Instance details Defined in Outputable Methods ppr :: [a] -> SDoc Source # pprPrec :: Rational -> [a] -> SDoc Source #
Outputable a => Outputable (Maybe a) Source # |
Instance details Defined in Outputable Methods ppr :: Maybe a -> SDoc Source # pprPrec :: Rational -> Maybe a -> SDoc Source #
Outputable elt => Outputable (IntMap elt) Source # |
Instance details Defined in Outputable Methods ppr :: IntMap elt -> SDoc Source # pprPrec :: Rational -> IntMap elt -> SDoc Source #
Outputable a => Outputable (SCC a) Source # |
Instance details Defined in Outputable Methods ppr :: SCC a -> SDoc Source # pprPrec :: Rational -> SCC a -> SDoc Source #
Outputable a => Outputable (Set a) Source # |
Instance details Defined in Outputable Methods ppr :: Set a -> SDoc Source # pprPrec :: Rational -> Set a -> SDoc Source #
Outputable a => Outputable (Pair a) Source # |
Instance details Defined in Pair Methods ppr :: Pair a -> SDoc Source # pprPrec :: Rational -> Pair a -> SDoc Source #
Outputable a => Outputable (OrdList a) Source # |
Instance details Defined in OrdList Methods ppr :: OrdList a -> SDoc Source # pprPrec :: Rational -> OrdList a -> SDoc Source #
Outputable (DefMethSpec ty) Source # |
Instance details Defined in BasicTypes Methods ppr :: DefMethSpec ty -> SDoc Source # pprPrec :: Rational -> DefMethSpec ty -> SDoc Source #
Outputable a => Outputable (UniqFM a) Source # |
Instance details Defined in UniqFM Methods ppr :: UniqFM a -> SDoc Source # pprPrec :: Rational -> UniqFM a -> SDoc Source #
Outputable a => Outputable (UniqSet a) Source # |
Instance details Defined in UniqSet Methods ppr :: UniqSet a -> SDoc Source # pprPrec :: Rational -> UniqSet a -> SDoc Source #
Outputable a => Outputable (UniqDFM a) Source # |
Instance details Defined in UniqDFM Methods ppr :: UniqDFM a -> SDoc Source # pprPrec :: Rational -> UniqDFM a -> SDoc Source #
Outputable a => Outputable (LabelMap a) Source # |
Instance details Defined in Hoopl.Label Methods ppr :: LabelMap a -> SDoc Source # pprPrec :: Rational -> LabelMap a -> SDoc Source #
OutputableBndr a => Outputable (BooleanFormula a) Source # |
Instance details Defined in BooleanFormula Methods ppr :: BooleanFormula a -> SDoc Source # pprPrec :: Rational -> BooleanFormula a -> SDoc Source #
Outputable node => Outputable (Graph node) Source # |
Instance details Defined in Digraph Methods ppr :: Graph node -> SDoc Source # pprPrec :: Rational -> Graph node -> SDoc Source #
Outputable a => Outputable (Bag a) Source # |
Instance details Defined in Bag Methods ppr :: Bag a -> SDoc Source # pprPrec :: Rational -> Bag a -> SDoc Source #
Outputable a => Outputable (OccEnv a) Source # |
Instance details Defined in OccName Methods ppr :: OccEnv a -> SDoc Source # pprPrec :: Rational -> OccEnv a -> SDoc Source #
Outputable a => Outputable (FieldLbl a) Source # |
Instance details Defined in FieldLabel Methods ppr :: FieldLbl a -> SDoc Source # pprPrec :: Rational -> FieldLbl a -> SDoc Source #
Outputable name => Outputable (AnnTarget name) Source # |
Instance details Defined in Annotations Methods ppr :: AnnTarget name -> SDoc Source # pprPrec :: Rational -> AnnTarget name -> SDoc Source #
Outputable (CoAxiom br) Source # |
Instance details Defined in CoAxiom Methods ppr :: CoAxiom br -> SDoc Source # pprPrec :: Rational -> CoAxiom br -> SDoc Source #
Outputable a => Outputable (UnifyResultM a) Source # |
Instance details Defined in Unify Methods ppr :: UnifyResultM a -> SDoc Source # pprPrec :: Rational -> UnifyResultM a -> SDoc Source #
Outputable b => Outputable (TaggedBndr b) Source # |
Instance details Defined in CoreSyn Methods ppr :: TaggedBndr b -> SDoc Source # pprPrec :: Rational -> TaggedBndr b -> SDoc Source #
Outputable id => Outputable (Tickish id) Source # |
Instance details Defined in PprCore Methods ppr :: Tickish id -> SDoc Source # pprPrec :: Rational -> Tickish id -> SDoc Source #
OutputableBndr b => Outputable (Bind b) Source # |
Instance details Defined in PprCore Methods ppr :: Bind b -> SDoc Source # pprPrec :: Rational -> Bind b -> SDoc Source #
OutputableBndr b => Outputable (Expr b) Source # |
Instance details Defined in PprCore Methods ppr :: Expr b -> SDoc Source # pprPrec :: Rational -> Expr b -> SDoc Source #
Outputable a => Outputable (CoreMap a) Source # |
Instance details Defined in TrieMap Methods ppr :: CoreMap a -> SDoc Source # pprPrec :: Rational -> CoreMap a -> SDoc Source #
Outputable bdee => Outputable (GenStgArg bdee) Source # |
Instance details Defined in StgSyn Methods ppr :: GenStgArg bdee -> SDoc Source # pprPrec :: Rational -> GenStgArg bdee -> SDoc Source #
Outputable instr => Outputable (ListGraph instr) Source # |
Instance details Defined in Cmm Methods ppr :: ListGraph instr -> SDoc Source # pprPrec :: Rational -> ListGraph instr -> SDoc Source #
Outputable instr => Outputable (GenBasicBlock instr) Source # |
Instance details Defined in Cmm Methods ppr :: GenBasicBlock instr -> SDoc Source # pprPrec :: Rational -> GenBasicBlock instr -> SDoc Source #
Outputable instr => Outputable (LiveInstr instr) Source # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: LiveInstr instr -> SDoc Source # pprPrec :: Rational -> LiveInstr instr -> SDoc Source #
Outputable instr => Outputable (InstrSR instr) Source # |
Instance details Defined in RegAlloc.Liveness Methods ppr :: InstrSR instr -> SDoc Source # pprPrec :: Rational -> InstrSR instr -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (Pat pass) Source # |
Instance details Defined in HsPat Methods ppr :: Pat pass -> SDoc Source # pprPrec :: Rational -> Pat pass -> SDoc Source #
OutputableBndrId pass => Outputable (IE pass) Source # |
Instance details Defined in HsImpExp Methods ppr :: IE pass -> SDoc Source # pprPrec :: Rational -> IE pass -> SDoc Source #
OutputableBndr name => Outputable (IEWrappedName name) Source # |
Instance details Defined in HsImpExp Methods ppr :: IEWrappedName name -> SDoc Source # pprPrec :: Rational -> IEWrappedName name -> SDoc Source #
OutputableBndrId pass => Outputable (ImportDecl pass) Source # |
Instance details Defined in HsImpExp Methods ppr :: ImportDecl pass -> SDoc Source # pprPrec :: Rational -> ImportDecl pass -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (SyntaxExpr p) Source # |
Instance details Defined in HsExpr Methods ppr :: SyntaxExpr p -> SDoc Source # pprPrec :: Rational -> SyntaxExpr p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsSplice p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsSplice p -> SDoc Source # pprPrec :: Rational -> HsSplice p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsCmd p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsCmd p -> SDoc Source # pprPrec :: Rational -> HsCmd p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsExpr p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsExpr p -> SDoc Source # pprPrec :: Rational -> HsExpr p -> SDoc Source #
Outputable (AmbiguousFieldOcc pass) Source # |
Instance details Defined in HsTypes Methods ppr :: AmbiguousFieldOcc pass -> SDoc Source # pprPrec :: Rational -> AmbiguousFieldOcc pass -> SDoc Source #
Outputable (FieldOcc pass) Source # |
Instance details Defined in HsTypes Methods ppr :: FieldOcc pass -> SDoc Source # pprPrec :: Rational -> FieldOcc pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (ConDeclField pass) Source # |
Instance details Defined in HsTypes Methods ppr :: ConDeclField pass -> SDoc Source # pprPrec :: Rational -> ConDeclField pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsAppType pass) Source # |
Instance details Defined in HsTypes Methods ppr :: HsAppType pass -> SDoc Source # pprPrec :: Rational -> HsAppType pass -> SDoc Source #
Outputable (HsWildCardInfo pass) Source # |
Instance details Defined in HsTypes Methods ppr :: HsWildCardInfo pass -> SDoc Source # pprPrec :: Rational -> HsWildCardInfo pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsType pass) Source # |
Instance details Defined in HsTypes Methods ppr :: HsType pass -> SDoc Source # pprPrec :: Rational -> HsType pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsTyVarBndr pass) Source # |
Instance details Defined in HsTypes Methods ppr :: HsTyVarBndr pass -> SDoc Source # pprPrec :: Rational -> HsTyVarBndr pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (LHsQTyVars pass) Source # |
Instance details Defined in HsTypes Methods ppr :: LHsQTyVars pass -> SDoc Source # pprPrec :: Rational -> LHsQTyVars pass -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsOverLit p) Source # |
Instance details Defined in HsLit Methods ppr :: HsOverLit p -> SDoc Source # pprPrec :: Rational -> HsOverLit p -> SDoc Source #
SourceTextX x => Outputable (HsLit x) Source # |
Instance details Defined in HsLit Methods ppr :: HsLit x -> SDoc Source # pprPrec :: Rational -> HsLit x -> SDoc Source #
Outputable a => Outputable (RecordPatSynField a) Source # |
Instance details Defined in HsBinds Methods ppr :: RecordPatSynField a -> SDoc Source # pprPrec :: Rational -> RecordPatSynField a -> SDoc Source #
OutputableBndrId pass => Outputable (FixitySig pass) Source # |
Instance details Defined in HsBinds Methods ppr :: FixitySig pass -> SDoc Source # pprPrec :: Rational -> FixitySig pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (Sig pass) Source # |
Instance details Defined in HsBinds Methods ppr :: Sig pass -> SDoc Source # pprPrec :: Rational -> Sig pass -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (IPBind p) Source # |
Instance details Defined in HsBinds Methods ppr :: IPBind p -> SDoc Source # pprPrec :: Rational -> IPBind p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsIPBinds p) Source # |
Instance details Defined in HsBinds Methods ppr :: HsIPBinds p -> SDoc Source # pprPrec :: Rational -> HsIPBinds p -> SDoc Source #
OutputableBndrId p => Outputable (ABExport p) Source # |
Instance details Defined in HsBinds Methods ppr :: ABExport p -> SDoc Source # pprPrec :: Rational -> ABExport p -> SDoc Source #
Outputable a => Outputable (NonVoid a) Source # |
Instance details Defined in StgCmmClosure Methods ppr :: NonVoid a -> SDoc Source # pprPrec :: Rational -> NonVoid a -> SDoc Source #
OutputableBndr (IdP pass) => Outputable (RoleAnnotDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: RoleAnnotDecl pass -> SDoc Source # pprPrec :: Rational -> RoleAnnotDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (AnnDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: AnnDecl pass -> SDoc Source # pprPrec :: Rational -> AnnDecl pass -> SDoc Source #
OutputableBndr (IdP pass) => Outputable (WarnDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: WarnDecl pass -> SDoc Source # pprPrec :: Rational -> WarnDecl pass -> SDoc Source #
OutputableBndr (IdP pass) => Outputable (WarnDecls pass) Source # |
Instance details Defined in HsDecls Methods ppr :: WarnDecls pass -> SDoc Source # pprPrec :: Rational -> WarnDecls pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (VectDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: VectDecl pass -> SDoc Source # pprPrec :: Rational -> VectDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (RuleBndr pass) Source # |
Instance details Defined in HsDecls Methods ppr :: RuleBndr pass -> SDoc Source # pprPrec :: Rational -> RuleBndr pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (RuleDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: RuleDecl pass -> SDoc Source # pprPrec :: Rational -> RuleDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (RuleDecls pass) Source # |
Instance details Defined in HsDecls Methods ppr :: RuleDecls pass -> SDoc Source # pprPrec :: Rational -> RuleDecls pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (ForeignDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: ForeignDecl pass -> SDoc Source # pprPrec :: Rational -> ForeignDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (DefaultDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: DefaultDecl pass -> SDoc Source # pprPrec :: Rational -> DefaultDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (DerivDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: DerivDecl pass -> SDoc Source # pprPrec :: Rational -> DerivDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (InstDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: InstDecl pass -> SDoc Source # pprPrec :: Rational -> InstDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (ClsInstDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: ClsInstDecl pass -> SDoc Source # pprPrec :: Rational -> ClsInstDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (DataFamInstDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: DataFamInstDecl pass -> SDoc Source # pprPrec :: Rational -> DataFamInstDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (TyFamInstDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: TyFamInstDecl pass -> SDoc Source # pprPrec :: Rational -> TyFamInstDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (ConDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: ConDecl pass -> SDoc Source # pprPrec :: Rational -> ConDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsDerivingClause pass) Source # |
Instance details Defined in HsDecls Methods ppr :: HsDerivingClause pass -> SDoc Source # pprPrec :: Rational -> HsDerivingClause pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsDataDefn pass) Source # |
Instance details Defined in HsDecls Methods ppr :: HsDataDefn pass -> SDoc Source # pprPrec :: Rational -> HsDataDefn pass -> SDoc Source #
Outputable (FamilyInfo pass) Source # |
Instance details Defined in HsDecls Methods ppr :: FamilyInfo pass -> SDoc Source # pprPrec :: Rational -> FamilyInfo pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (FamilyDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: FamilyDecl pass -> SDoc Source # pprPrec :: Rational -> FamilyDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (TyClGroup pass) Source # |
Instance details Defined in HsDecls Methods ppr :: TyClGroup pass -> SDoc Source # pprPrec :: Rational -> TyClGroup pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (TyClDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: TyClDecl pass -> SDoc Source # pprPrec :: Rational -> TyClDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (SpliceDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: SpliceDecl pass -> SDoc Source # pprPrec :: Rational -> SpliceDecl pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsGroup pass) Source # |
Instance details Defined in HsDecls Methods ppr :: HsGroup pass -> SDoc Source # pprPrec :: Rational -> HsGroup pass -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsDecl pass) Source # |
Instance details Defined in HsDecls Methods ppr :: HsDecl pass -> SDoc Source # pprPrec :: Rational -> HsDecl pass -> SDoc Source #
(Outputable p, Outputable (NameOrRdrName p)) => Outputable (HsStmtContext p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsStmtContext p -> SDoc Source # pprPrec :: Rational -> HsStmtContext p -> SDoc Source #
OutputableBndr id => Outputable (HsMatchContext id) Source # |
Instance details Defined in HsExpr Methods ppr :: HsMatchContext id -> SDoc Source # pprPrec :: Rational -> HsMatchContext id -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (ArithSeqInfo p) Source # |
Instance details Defined in HsExpr Methods ppr :: ArithSeqInfo p -> SDoc Source # pprPrec :: Rational -> ArithSeqInfo p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsBracket p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsBracket p -> SDoc Source # pprPrec :: Rational -> HsBracket p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsSplicedThing p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsSplicedThing p -> SDoc Source # pprPrec :: Rational -> HsSplicedThing p -> SDoc Source #
(SourceTextX p, OutputableBndrId p) => Outputable (HsCmdTop p) Source # |
Instance details Defined in HsExpr Methods ppr :: HsCmdTop p -> SDoc Source # pprPrec :: Rational -> HsCmdTop p -> SDoc Source #
(SourceTextX pass, OutputableBndrId pass) => Outputable (HsModule pass) Source # |
Instance details Defined in HsSyn Methods ppr :: HsModule pass -> SDoc Source # pprPrec :: Rational -> HsModule pass -> SDoc Source #
(SourceTextX a, OutputableBndrId a) => Outputable (InstInfo a) Source # |
Instance details Defined in TcEnv Methods ppr :: InstInfo a -> SDoc Source # pprPrec :: Rational -> InstInfo a -> SDoc Source #
Outputable (FunDepEqn a) Source # |
Instance details Defined in FunDeps Methods ppr :: FunDepEqn a -> SDoc Source # pprPrec :: Rational -> FunDepEqn a -> SDoc Source #
Outputable a => Outputable (StopOrContinue a) Source # |
Instance details Defined in TcCanonical Methods ppr :: StopOrContinue a -> SDoc Source # pprPrec :: Rational -> StopOrContinue a -> SDoc Source #
Outputable theta => Outputable (DerivSpec theta) Source # |
Instance details Defined in TcDerivUtils Methods ppr :: DerivSpec theta -> SDoc Source # pprPrec :: Rational -> DerivSpec theta -> SDoc Source #
Outputable a => Outputable (ProtoBCO a) Source # |
Instance details Defined in ByteCodeInstr Methods ppr :: ProtoBCO a -> SDoc Source # pprPrec :: Rational -> ProtoBCO a -> SDoc Source #
(Outputable a, Outputable b) => Outputable (Either a b) Source # |
Instance details Defined in Outputable Methods ppr :: Either a b -> SDoc Source # pprPrec :: Rational -> Either a b -> SDoc Source #
(Outputable a, Outputable b) => Outputable (a, b) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b) -> SDoc Source # pprPrec :: Rational -> (a, b) -> SDoc Source #
(Outputable key, Outputable elt) => Outputable (Map key elt) Source # |
Instance details Defined in Outputable Methods ppr :: Map key elt -> SDoc Source # pprPrec :: Rational -> Map key elt -> SDoc Source #
(Outputable l, Outputable e) => Outputable (GenLocated l e) Source # |
Instance details Defined in SrcLoc Methods ppr :: GenLocated l e -> SDoc Source # pprPrec :: Rational -> GenLocated l e -> SDoc Source #
(Outputable k, Outputable a) => Outputable (UniqMap k a) Source # |
Instance details Defined in UniqMap Methods ppr :: UniqMap k a -> SDoc Source # pprPrec :: Rational -> UniqMap k a -> SDoc Source #
(Outputable a, Outputable b) => Outputable (Node a b) Source # |
Instance details Defined in Digraph Methods ppr :: Node a b -> SDoc Source # pprPrec :: Rational -> Node a b -> SDoc Source #
Outputable tv => Outputable (TyVarBndr tv ArgFlag) Source # |
Instance details Defined in Var Methods ppr :: TyVarBndr tv ArgFlag -> SDoc Source # pprPrec :: Rational -> TyVarBndr tv ArgFlag -> SDoc Source #
Outputable tv => Outputable (TyVarBndr tv TyConBndrVis) Source # |
Instance details Defined in TyCon Methods ppr :: TyVarBndr tv TyConBndrVis -> SDoc Source # pprPrec :: Rational -> TyVarBndr tv TyConBndrVis -> SDoc Source #
(TrieMap m, Outputable a) => Outputable (ListMap m a) Source # |
Instance details Defined in TrieMap Methods ppr :: ListMap m a -> SDoc Source # pprPrec :: Rational -> ListMap m a -> SDoc Source #
(OutputableBndr bndr, Outputable bdee, Ord bdee) => Outputable (GenStgRhs bndr bdee) Source # |
Instance details Defined in StgSyn Methods ppr :: GenStgRhs bndr bdee -> SDoc Source # pprPrec :: Rational -> GenStgRhs bndr bdee -> SDoc Source #
(OutputableBndr bndr, Outputable bdee, Ord bdee) => Outputable (GenStgExpr bndr bdee) Source # |
Instance details Defined in StgSyn Methods ppr :: GenStgExpr bndr bdee -> SDoc Source # pprPrec :: Rational -> GenStgExpr bndr bdee -> SDoc Source #
(OutputableBndr bndr, Outputable bdee, Ord bdee) => Outputable (GenStgBinding bndr bdee) Source # |
Instance details Defined in StgSyn Methods ppr :: GenStgBinding bndr bdee -> SDoc Source # pprPrec :: Rational -> GenStgBinding bndr bdee -> SDoc Source #
(OutputableBndr bndr, Outputable bdee, Ord bdee) => Outputable (GenStgTopBinding bndr bdee) Source # |
Instance details Defined in StgSyn Methods ppr :: GenStgTopBinding bndr bdee -> SDoc Source # pprPrec :: Rational -> GenStgTopBinding bndr bdee -> SDoc Source #
Outputable (CmmNode e x) Source # |
Instance details Defined in PprCmm Methods ppr :: CmmNode e x -> SDoc Source # pprPrec :: Rational -> CmmNode e x -> SDoc Source #
(Outputable arg, Outputable rec) => Outputable (HsConDetails arg rec) Source # |
Instance details Defined in HsTypes Methods ppr :: HsConDetails arg rec -> SDoc Source # pprPrec :: Rational -> HsConDetails arg rec -> SDoc Source #
Outputable thing => Outputable (HsWildCardBndrs pass thing) Source # |
Instance details Defined in HsTypes Methods ppr :: HsWildCardBndrs pass thing -> SDoc Source # pprPrec :: Rational -> HsWildCardBndrs pass thing -> SDoc Source #
Outputable thing => Outputable (HsImplicitBndrs pass thing) Source # |
Instance details Defined in HsTypes Methods ppr :: HsImplicitBndrs pass thing -> SDoc Source # pprPrec :: Rational -> HsImplicitBndrs pass thing -> SDoc Source #
(SourceTextX idR, OutputableBndrId idL, OutputableBndrId idR) => Outputable (PatSynBind idL idR) Source # |
Instance details Defined in HsBinds Methods ppr :: PatSynBind idL idR -> SDoc Source # pprPrec :: Rational -> PatSynBind idL idR -> SDoc Source #
(SourceTextX idL, SourceTextX idR, OutputableBndrId idL, OutputableBndrId idR) => Outputable (HsBindLR idL idR) Source # |
Instance details Defined in HsBinds Methods ppr :: HsBindLR idL idR -> SDoc Source # pprPrec :: Rational -> HsBindLR idL idR -> SDoc Source #
(SourceTextX idL, SourceTextX idR, OutputableBndrId idL, OutputableBndrId idR) => Outputable (HsValBindsLR idL idR) Source # |
Instance details Defined in HsBinds Methods ppr :: HsValBindsLR idL idR -> SDoc Source # pprPrec :: Rational -> HsValBindsLR idL idR -> SDoc Source #
(SourceTextX idL, SourceTextX idR, OutputableBndrId idL, OutputableBndrId idR) => Outputable (HsLocalBindsLR idL idR) Source # |
Instance details Defined in HsBinds Methods ppr :: HsLocalBindsLR idL idR -> SDoc Source # pprPrec :: Rational -> HsLocalBindsLR idL idR -> SDoc Source #
(Outputable p, Outputable arg) => Outputable (HsRecField' p arg) Source # |
Instance details Defined in HsPat Methods ppr :: HsRecField' p arg -> SDoc Source # pprPrec :: Rational -> HsRecField' p arg -> SDoc Source #
Outputable arg => Outputable (HsRecFields p arg) Source # |
Instance details Defined in HsPat Methods ppr :: HsRecFields p arg -> SDoc Source # pprPrec :: Rational -> HsRecFields p arg -> SDoc Source #
(SourceTextX idL, OutputableBndrId idL) => Outputable (ParStmtBlock idL idR) Source # |
Instance details Defined in HsExpr Methods ppr :: ParStmtBlock idL idR -> SDoc Source # pprPrec :: Rational -> ParStmtBlock idL idR -> SDoc Source #
(SourceTextX idR, OutputableBndrId idR, Outputable body) => Outputable (Match idR body) Source # |
Instance details Defined in HsExpr Methods ppr :: Match idR body -> SDoc Source # pprPrec :: Rational -> Match idR body -> SDoc Source #
(Outputable statics, Outputable instr) => Outputable (RegAllocStats statics instr) Source # |
Instance details Defined in RegAlloc.Graph.Stats Methods ppr :: RegAllocStats statics instr -> SDoc Source # pprPrec :: Rational -> RegAllocStats statics instr -> SDoc Source #
(Outputable a, Outputable b, Outputable c) => Outputable (a, b, c) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b, c) -> SDoc Source # pprPrec :: Rational -> (a, b, c) -> SDoc Source #
Outputable (Block CmmNode C C) Source # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode C C -> SDoc Source # pprPrec :: Rational -> Block CmmNode C C -> SDoc Source #
Outputable (Block CmmNode C O) Source # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode C O -> SDoc Source # pprPrec :: Rational -> Block CmmNode C O -> SDoc Source #
Outputable (Block CmmNode O C) Source # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode O C -> SDoc Source # pprPrec :: Rational -> Block CmmNode O C -> SDoc Source #
Outputable (Block CmmNode O O) Source # |
Instance details Defined in PprCmm Methods ppr :: Block CmmNode O O -> SDoc Source # pprPrec :: Rational -> Block CmmNode O O -> SDoc Source #
Outputable (Graph CmmNode e x) Source # |
Instance details Defined in PprCmm Methods ppr :: Graph CmmNode e x -> SDoc Source # pprPrec :: Rational -> Graph CmmNode e x -> SDoc Source #
(Outputable d, Outputable info, Outputable i) => Outputable (GenCmmDecl d info i) Source # |
Instance details Defined in PprCmmDecl Methods ppr :: GenCmmDecl d info i -> SDoc Source # pprPrec :: Rational -> GenCmmDecl d info i -> SDoc Source #
(SourceTextX idL, SourceTextX idR, OutputableBndrId idL, OutputableBndrId idR, Outputable body) => Outputable (StmtLR idL idR body) Source # |
Instance details Defined in HsExpr Methods ppr :: StmtLR idL idR body -> SDoc Source # pprPrec :: Rational -> StmtLR idL idR body -> SDoc Source #
(Outputable a, Outputable b, Outputable c, Outputable d) => Outputable (a, b, c, d) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d) -> SDoc Source # pprPrec :: Rational -> (a, b, c, d) -> SDoc Source #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e) => Outputable (a, b, c, d, e) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e) -> SDoc Source # pprPrec :: Rational -> (a, b, c, d, e) -> SDoc Source #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e, Outputable f) => Outputable (a, b, c, d, e, f) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e, f) -> SDoc Source # pprPrec :: Rational -> (a, b, c, d, e, f) -> SDoc Source #
(Outputable a, Outputable b, Outputable c, Outputable d, Outputable e, Outputable f, Outputable g) => Outputable (a, b, c, d, e, f, g) Source # |
Instance details Defined in Outputable Methods ppr :: (a, b, c, d, e, f, g) -> SDoc Source # pprPrec :: Rational -> (a, b, c, d, e, f, g) -> SDoc Source #

class Outputable a => OutputableBndr a where Source #

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 Source #

pprPrefixOcc :: a -> SDoc Source #

pprInfixOcc :: a -> SDoc Source #

bndrIsJoin_maybe :: a -> Maybe Int Source #

Instances

OutputableBndr Name Source # |
Instance details Defined in Name Methods pprBndr :: BindingSite -> Name -> SDoc Source # pprPrefixOcc :: Name -> SDoc Source # pprInfixOcc :: Name -> SDoc Source # bndrIsJoin_maybe :: Name -> Maybe Int Source #
OutputableBndr OccName Source # |
Instance details Defined in OccName Methods pprBndr :: BindingSite -> OccName -> SDoc Source # pprPrefixOcc :: OccName -> SDoc Source # pprInfixOcc :: OccName -> SDoc Source # bndrIsJoin_maybe :: OccName -> Maybe Int Source #
OutputableBndr RdrName Source # |
Instance details Defined in RdrName Methods pprBndr :: BindingSite -> RdrName -> SDoc Source # pprPrefixOcc :: RdrName -> SDoc Source # pprInfixOcc :: RdrName -> SDoc Source # bndrIsJoin_maybe :: RdrName -> Maybe Int Source #
OutputableBndr Var Source # |
Instance details Defined in PprCore Methods pprBndr :: BindingSite -> Var -> SDoc Source # pprPrefixOcc :: Var -> SDoc Source # pprInfixOcc :: Var -> SDoc Source # bndrIsJoin_maybe :: Var -> Maybe Int Source #
OutputableBndr PatSyn Source # |
Instance details Defined in PatSyn Methods pprBndr :: BindingSite -> PatSyn -> SDoc Source # pprPrefixOcc :: PatSyn -> SDoc Source # pprInfixOcc :: PatSyn -> SDoc Source # bndrIsJoin_maybe :: PatSyn -> Maybe Int Source #
OutputableBndr DataCon Source # |
Instance details Defined in DataCon Methods pprBndr :: BindingSite -> DataCon -> SDoc Source # pprPrefixOcc :: DataCon -> SDoc Source # pprInfixOcc :: DataCon -> SDoc Source # bndrIsJoin_maybe :: DataCon -> Maybe Int Source #
OutputableBndr ConLike Source # |
Instance details Defined in ConLike Methods pprBndr :: BindingSite -> ConLike -> SDoc Source # pprPrefixOcc :: ConLike -> SDoc Source # pprInfixOcc :: ConLike -> SDoc Source # bndrIsJoin_maybe :: ConLike -> Maybe Int Source #
OutputableBndr HsIPName Source # |
Instance details Defined in HsTypes Methods pprBndr :: BindingSite -> HsIPName -> SDoc Source # pprPrefixOcc :: HsIPName -> SDoc Source # pprInfixOcc :: HsIPName -> SDoc Source # bndrIsJoin_maybe :: HsIPName -> Maybe Int Source #
Outputable b => OutputableBndr (TaggedBndr b) Source # |
Instance details Defined in PprCore Methods pprBndr :: BindingSite -> TaggedBndr b -> SDoc Source # pprPrefixOcc :: TaggedBndr b -> SDoc Source # pprInfixOcc :: TaggedBndr b -> SDoc Source # bndrIsJoin_maybe :: TaggedBndr b -> Maybe Int Source #
OutputableBndr name => OutputableBndr (IEWrappedName name) Source # |
Instance details Defined in HsImpExp Methods pprBndr :: BindingSite -> IEWrappedName name -> SDoc Source # pprPrefixOcc :: IEWrappedName name -> SDoc Source # pprInfixOcc :: IEWrappedName name -> SDoc Source # bndrIsJoin_maybe :: IEWrappedName name -> Maybe Int Source #
OutputableBndr (AmbiguousFieldOcc pass) Source # |
Instance details Defined in HsTypes Methods pprBndr :: BindingSite -> AmbiguousFieldOcc pass -> SDoc Source # pprPrefixOcc :: AmbiguousFieldOcc pass -> SDoc Source # pprInfixOcc :: AmbiguousFieldOcc pass -> SDoc Source # bndrIsJoin_maybe :: AmbiguousFieldOcc pass -> Maybe Int Source #

# Pretty printing combinators

data SDoc Source #

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

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

runSDoc :: SDoc -> SDocContext -> Doc Source #

initSDocContext :: DynFlags -> PprStyle -> SDocContext Source #

docToSDoc :: Doc -> SDoc Source #

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

Returns the separated concatenation of the pretty printed things.

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

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

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

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

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

pprWithCommas Source #

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 Source #

quotedListWithNor :: [SDoc] -> SDoc Source #

pprWithBars Source #

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 Source #

isEmpty :: DynFlags -> SDoc -> Bool Source #

nest :: Int -> SDoc -> SDoc Source #

Indent `SDoc` some specified amount

char :: Char -> SDoc Source #

text :: String -> SDoc Source #

ftext :: FastString -> SDoc Source #

ptext :: LitString -> SDoc Source #

ztext :: FastZString -> SDoc Source #

int :: Int -> SDoc Source #

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

integer :: Integer -> SDoc Source #

float :: Float -> SDoc Source #

double :: Double -> SDoc Source #

rational :: Rational -> SDoc Source #

doublePrec :: Int -> Double -> SDoc Source #

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

parens :: SDoc -> SDoc Source #

cparen :: Bool -> SDoc -> SDoc Source #

brackets :: SDoc -> SDoc Source #

braces :: SDoc -> SDoc Source #

quotes :: SDoc -> SDoc Source #

quote :: SDoc -> SDoc Source #

doubleQuotes :: SDoc -> SDoc Source #

angleBrackets :: SDoc -> SDoc Source #

paBrackets :: SDoc -> SDoc Source #

semi :: SDoc Source #

comma :: SDoc Source #

colon :: SDoc Source #

dcolon :: SDoc Source #

space :: SDoc Source #

equals :: SDoc Source #

dot :: SDoc Source #

vbar :: SDoc Source #

arrow :: SDoc Source #

larrow :: SDoc Source #

darrow :: SDoc Source #

arrowt :: SDoc Source #

larrowt :: SDoc Source #

arrowtt :: SDoc Source #

larrowtt :: SDoc Source #

lparen :: SDoc Source #

rparen :: SDoc Source #

lbrack :: SDoc Source #

rbrack :: SDoc Source #

lbrace :: SDoc Source #

rbrace :: SDoc Source #

underscore :: SDoc Source #

blankLine :: SDoc Source #

forAllLit :: SDoc Source #

kindStar :: SDoc Source #

bullet :: SDoc Source #

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

Join two `SDoc` together horizontally without a gap

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

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

hcat :: [SDoc] -> SDoc Source #

Concatenate `SDoc` horizontally

hsep :: [SDoc] -> SDoc Source #

Concatenate `SDoc` horizontally with a space between each one

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

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

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

Join two `SDoc` together vertically

vcat :: [SDoc] -> SDoc Source #

Concatenate `SDoc` vertically with dovetailing

sep :: [SDoc] -> SDoc Source #

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

cat :: [SDoc] -> SDoc Source #

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

fsep :: [SDoc] -> SDoc Source #

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 Source #

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

hang Source #

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 Source #

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

punctuate Source #

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 Source #

ppUnless :: Bool -> SDoc -> SDoc Source #

speakNth :: Int -> SDoc Source #

Converts an integer to a verbal index:

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

speakN :: Int -> SDoc Source #

Converts an integer to a verbal multiplicity:

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

speakNOf :: Int -> SDoc -> SDoc Source #

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 Source #

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 Source #

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 Source #

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 Source #

coloured :: PprColour -> SDoc -> SDoc Source #

Apply the given colour/style for the argument.

Only takes effect if colours are enabled.

keyword :: SDoc -> SDoc Source #

# Converting `SDoc` into strings and outputing it

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

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 () Source #

Like `printSDoc` but appends an extra newline.

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

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

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

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

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

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

pprCode :: CodeStyle -> SDoc -> SDoc Source #

mkCodeStyle :: CodeStyle -> PprStyle Source #

showSDoc :: DynFlags -> SDoc -> String Source #

showSDocUnsafe :: SDoc -> String Source #

showSDocOneLine :: DynFlags -> SDoc -> String Source #

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

showSDocDebug :: DynFlags -> SDoc -> String Source #

showSDocDump :: DynFlags -> SDoc -> String Source #

showSDocDumpOneLine :: DynFlags -> SDoc -> String Source #

showSDocUnqual :: DynFlags -> SDoc -> String Source #

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

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

pprInfixVar :: Bool -> SDoc -> SDoc Source #

pprPrefixVar :: Bool -> SDoc -> SDoc Source #

pprHsChar :: Char -> SDoc Source #

Special combinator for showing character literals.

pprHsString :: FastString -> SDoc Source #

Special combinator for showing string literals.

pprHsBytes :: ByteString -> SDoc Source #

Special combinator for showing bytestring literals.

primFloatSuffix :: SDoc Source #

primCharSuffix :: SDoc Source #

primWordSuffix :: SDoc Source #

primDoubleSuffix :: SDoc Source #

primInt64Suffix :: SDoc Source #

primWord64Suffix :: SDoc Source #

primIntSuffix :: SDoc Source #

pprPrimChar :: Char -> SDoc Source #

Special combinator for showing unboxed literals.

pprPrimInt :: Integer -> SDoc Source #

pprPrimWord :: Integer -> SDoc Source #

pprPrimInt64 :: Integer -> SDoc Source #

pprPrimWord64 :: Integer -> SDoc Source #

pprFastFilePath :: FastString -> SDoc Source #

# Controlling the style in which output is printed

data BindingSite Source #

`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 Source #

Instances

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

data CodeStyle Source #

Constructors

CStyle |
AsmStyle |

data PrintUnqualified Source #

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 Source #

given an original name, this function tells you which module name it should be qualified with when printing for the user, if any. For example, given `Control.Exception.catch`, which is in scope as `Exception.catch`, this function will return `Just Exception`. Note that the return value is a ModuleName, not a Module, because in source code, names are qualified by ModuleNames.

type QueryQualifyModule = Module -> Bool Source #

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

type QueryQualifyPackage = UnitId -> Bool Source #

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

reallyAlwaysQualify :: PrintUnqualified Source #

reallyAlwaysQualifyNames :: QueryQualifyName Source #

alwaysQualify :: PrintUnqualified Source #

alwaysQualifyNames :: QueryQualifyName Source #

NB: This won't ever show package IDs

alwaysQualifyModules :: QueryQualifyModule Source #

neverQualify :: PrintUnqualified Source #

neverQualifyNames :: QueryQualifyName Source #

neverQualifyModules :: QueryQualifyModule Source #

alwaysQualifyPackages :: QueryQualifyPackage Source #

neverQualifyPackages :: QueryQualifyPackage Source #

data QualifyName Source #

Constructors

NameUnqual |
NameQual ModuleName |
NameNotInScope1 |
NameNotInScope2 |

Instances

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

queryQual :: PprStyle -> PrintUnqualified Source #

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

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

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

withPprStyle :: PprStyle -> SDoc -> SDoc Source #

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

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 Source #

pprDeeper :: SDoc -> SDoc Source #

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

Truncate a list that is longer than the current depth.

pprSetDepth :: Depth -> SDoc -> SDoc Source #

codeStyle :: PprStyle -> Bool Source #

userStyle :: PprStyle -> Bool Source #

debugStyle :: PprStyle -> Bool Source #

dumpStyle :: PprStyle -> Bool Source #

asmStyle :: PprStyle -> Bool Source #

qualName :: PprStyle -> QueryQualifyName Source #

qualModule :: PprStyle -> QueryQualifyModule Source #

qualPackage :: PprStyle -> QueryQualifyPackage Source #

mkErrStyle :: DynFlags -> PrintUnqualified -> PprStyle Source #

Style for printing error messages

defaultErrStyle :: DynFlags -> PprStyle Source #

defaultDumpStyle :: DynFlags -> PprStyle Source #

mkDumpStyle :: DynFlags -> PrintUnqualified -> PprStyle Source #

defaultUserStyle :: DynFlags -> PprStyle Source #

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

cmdlineParserStyle :: DynFlags -> PprStyle Source #

data Depth Source #

Constructors

AllTheWay |
PartWay Int |

ifPprDebug :: SDoc -> SDoc -> SDoc Source #

Says what to do with and without -dppr-debug

whenPprDebug :: SDoc -> SDoc Source #

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

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

# Error handling and debugging utilities

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

Throw an exception saying "bug in GHC"

pprSorry :: String -> SDoc -> a Source #

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

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

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 Source #

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

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

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

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

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

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

warnPprTrace :: Bool -> String -> Int -> SDoc -> a -> a Source #

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 Source #

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 Source #

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

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 Source #

Panics and asserts.

panic :: String -> a Source #

Panics and asserts.

sorry :: String -> a Source #

Panics and asserts.

assertPanic :: String -> Int -> a Source #

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

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

callStackDoc :: HasCallStack => SDoc Source #