Safe Haskell | None |
---|---|
Language | GHC2021 |
GHC.Iface.Errors.Types
Synopsis
- data MissingInterfaceError
- data InterfaceLookingFor
- data IfaceMessage
- data ReadInterfaceError
- data CantFindInstalled = CantFindInstalled ModuleName CantFindInstalledReason
- data CantFindInstalledReason
- = NoUnitIdMatching UnitId [UnitInfo]
- | MissingPackageFiles UnitId [FilePath]
- | MissingPackageWayFiles String UnitId [FilePath]
- | ModuleSuggestion [ModuleSuggestion] [FilePath]
- | NotAModule
- | CouldntFindInFiles [FilePath]
- | GenericMissing [(Unit, Maybe UnitInfo)] [Unit] [UnusableUnit] [FilePath]
- | MultiplePackages [(Module, ModuleOrigin)]
- data FindingModuleOrInterface
- data BuildingCabalPackage
- data IfaceMessageOpts = IfaceMessageOpts {}
Documentation
data MissingInterfaceError Source #
Constructors
Instances
data InterfaceLookingFor Source #
data IfaceMessage Source #
Constructors
Can'tFindInterface MissingInterfaceError InterfaceLookingFor | |
Can'tFindNameInInterface Name [TyThing] | |
CircularImport !Module |
Instances
Diagnostic IfaceMessage Source # | |||||
Defined in GHC.Iface.Errors.Ppr Associated Types
Methods diagnosticMessage :: DiagnosticOpts IfaceMessage -> IfaceMessage -> DecoratedSDoc Source # diagnosticReason :: IfaceMessage -> DiagnosticReason Source # diagnosticHints :: IfaceMessage -> [GhcHint] Source # diagnosticCode :: IfaceMessage -> Maybe DiagnosticCode Source # | |||||
Generic IfaceMessage Source # | |||||
Defined in GHC.Iface.Errors.Types Associated Types
| |||||
type DiagnosticOpts IfaceMessage Source # | |||||
Defined in GHC.Iface.Errors.Ppr | |||||
type Rep IfaceMessage Source # | |||||
Defined in GHC.Iface.Errors.Types type Rep IfaceMessage = D1 ('MetaData "IfaceMessage" "GHC.Iface.Errors.Types" "ghc-9.10.1-25ec" 'False) (C1 ('MetaCons "Can'tFindInterface" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MissingInterfaceError) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InterfaceLookingFor)) :+: (C1 ('MetaCons "Can'tFindNameInInterface" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TyThing])) :+: C1 ('MetaCons "CircularImport" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Module)))) |
data ReadInterfaceError Source #
Constructors
ExceptionOccurred FilePath SomeException | |
HiModuleNameMismatchWarn FilePath Module Module |
Instances
Generic ReadInterfaceError Source # | |||||
Defined in GHC.Iface.Errors.Types Associated Types
Methods from :: ReadInterfaceError -> Rep ReadInterfaceError x # to :: Rep ReadInterfaceError x -> ReadInterfaceError # | |||||
type Rep ReadInterfaceError Source # | |||||
Defined in GHC.Iface.Errors.Types type Rep ReadInterfaceError = D1 ('MetaData "ReadInterfaceError" "GHC.Iface.Errors.Types" "ghc-9.10.1-25ec" 'False) (C1 ('MetaCons "ExceptionOccurred" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeException)) :+: C1 ('MetaCons "HiModuleNameMismatchWarn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Module) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Module)))) |
data CantFindInstalled Source #
Constructors
CantFindInstalled ModuleName CantFindInstalledReason |
Instances
Generic CantFindInstalled Source # | |||||
Defined in GHC.Iface.Errors.Types Associated Types
Methods from :: CantFindInstalled -> Rep CantFindInstalled x # to :: Rep CantFindInstalled x -> CantFindInstalled # | |||||
type Rep CantFindInstalled Source # | |||||
Defined in GHC.Iface.Errors.Types type Rep CantFindInstalled = D1 ('MetaData "CantFindInstalled" "GHC.Iface.Errors.Types" "ghc-9.10.1-25ec" 'False) (C1 ('MetaCons "CantFindInstalled" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ModuleName) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CantFindInstalledReason))) |
data CantFindInstalledReason Source #
Constructors
NoUnitIdMatching UnitId [UnitInfo] | |
MissingPackageFiles UnitId [FilePath] | |
MissingPackageWayFiles String UnitId [FilePath] | |
ModuleSuggestion [ModuleSuggestion] [FilePath] | |
NotAModule | |
CouldntFindInFiles [FilePath] | |
GenericMissing [(Unit, Maybe UnitInfo)] [Unit] [UnusableUnit] [FilePath] | |
MultiplePackages [(Module, ModuleOrigin)] |
Instances
Generic CantFindInstalledReason Source # | |||||
Defined in GHC.Iface.Errors.Types Associated Types
Methods from :: CantFindInstalledReason -> Rep CantFindInstalledReason x # to :: Rep CantFindInstalledReason x -> CantFindInstalledReason # | |||||
type Rep CantFindInstalledReason Source # | |||||
Defined in GHC.Iface.Errors.Types type Rep CantFindInstalledReason = D1 ('MetaData "CantFindInstalledReason" "GHC.Iface.Errors.Types" "ghc-9.10.1-25ec" 'False) (((C1 ('MetaCons "NoUnitIdMatching" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnitId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UnitInfo])) :+: C1 ('MetaCons "MissingPackageFiles" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnitId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]))) :+: (C1 ('MetaCons "MissingPackageWayFiles" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnitId) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]))) :+: C1 ('MetaCons "ModuleSuggestion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [ModuleSuggestion]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath])))) :+: ((C1 ('MetaCons "NotAModule" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CouldntFindInFiles" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]))) :+: (C1 ('MetaCons "GenericMissing" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Unit, Maybe UnitInfo)]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Unit])) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [UnusableUnit]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [FilePath]))) :+: C1 ('MetaCons "MultiplePackages" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(Module, ModuleOrigin)]))))) |
data FindingModuleOrInterface Source #
Constructors
FindingModule | |
FindingInterface |
data BuildingCabalPackage Source #
Pass to a DriverMessage
the information whether or not the
'-fbuilding-cabal-package' flag is set.
Constructors
YesBuildingCabalPackage | |
NoBuildingCabalPackage |
Instances
Eq BuildingCabalPackage Source # | |
Defined in GHC.Iface.Errors.Types Methods (==) :: BuildingCabalPackage -> BuildingCabalPackage -> Bool # (/=) :: BuildingCabalPackage -> BuildingCabalPackage -> Bool # |
data IfaceMessageOpts Source #
Constructors
IfaceMessageOpts | |
Fields
|
Instances
HasDefaultDiagnosticOpts IfaceMessageOpts Source # | |
Defined in GHC.Iface.Errors.Ppr Methods |