| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
GHC.Iface.Errors.Ppr
Contents
Synopsis
- data IfaceMessageOpts = IfaceMessageOpts {}
 - interfaceErrorHints :: IfaceMessage -> [GhcHint]
 - interfaceErrorReason :: IfaceMessage -> DiagnosticReason
 - interfaceErrorDiagnostic :: IfaceMessageOpts -> IfaceMessage -> SDoc
 - missingInterfaceErrorHints :: MissingInterfaceError -> [GhcHint]
 - missingInterfaceErrorReason :: MissingInterfaceError -> DiagnosticReason
 - missingInterfaceErrorDiagnostic :: IfaceMessageOpts -> MissingInterfaceError -> SDoc
 - readInterfaceErrorDiagnostic :: ReadInterfaceError -> SDoc
 - lookingForHerald :: InterfaceLookingFor -> SDoc
 - cantFindErrorX :: (UnitInfo -> SDoc) -> ([FilePath] -> SDoc) -> FindingModuleOrInterface -> CantFindInstalled -> SDoc
 - mayShowLocations :: String -> Bool -> [FilePath] -> SDoc
 - pkgHiddenHint :: (UnitInfo -> SDoc) -> BuildingCabalPackage -> UnitInfo -> SDoc
 
Documentation
data IfaceMessageOpts Source #
Constructors
| IfaceMessageOpts | |
Fields 
  | |
Instances
| HasDefaultDiagnosticOpts IfaceMessageOpts Source # | |
Defined in GHC.Iface.Errors.Ppr Methods  | |
interfaceErrorHints :: IfaceMessage -> [GhcHint] Source #
cantFindErrorX :: (UnitInfo -> SDoc) -> ([FilePath] -> SDoc) -> FindingModuleOrInterface -> CantFindInstalled -> SDoc Source #
General version of cantFindError which has some holes which allow GHC/GHCi to display slightly different error messages.
pkgHiddenHint :: (UnitInfo -> SDoc) -> BuildingCabalPackage -> UnitInfo -> SDoc Source #
Orphan instances
| Diagnostic IfaceMessage Source # | |||||
Associated Types 
 Methods diagnosticMessage :: DiagnosticOpts IfaceMessage -> IfaceMessage -> DecoratedSDoc Source # diagnosticReason :: IfaceMessage -> DiagnosticReason Source # diagnosticHints :: IfaceMessage -> [GhcHint] Source # diagnosticCode :: IfaceMessage -> Maybe DiagnosticCode Source #  | |||||
| HasDefaultDiagnosticOpts IfaceMessageOpts Source # | |||||
Methods  | |||||