diff options
Diffstat (limited to 'compiler/GHC/Driver/Errors/Types.hs')
-rw-r--r-- | compiler/GHC/Driver/Errors/Types.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/GHC/Driver/Errors/Types.hs b/compiler/GHC/Driver/Errors/Types.hs index 178455187f..7257b23903 100644 --- a/compiler/GHC/Driver/Errors/Types.hs +++ b/compiler/GHC/Driver/Errors/Types.hs @@ -128,6 +128,16 @@ data DriverMessage where -} DriverMissingHomeModules :: [ModuleName] -> !BuildingCabalPackage -> DriverMessage + {-| DriverUnknown is a warning that arises when a user tries to + reexport a module which isn't part of that unit. + -} + DriverUnknownReexportedModules :: [ModuleName] -> DriverMessage + + {-| DriverUnknownHiddenModules is a warning that arises when a user tries to + hide a module which isn't part of that unit. + -} + DriverUnknownHiddenModules :: [ModuleName] -> DriverMessage + {-| DriverUnusedPackages occurs when when package is requested on command line, but was never needed during compilation. Activated by -Wunused-packages. @@ -337,6 +347,10 @@ data DriverMessage where -} DriverCannotImportFromUntrustedPackage :: !UnitState -> !Module -> DriverMessage + DriverRedirectedNoMain :: !ModuleName -> DriverMessage + + DriverHomePackagesNotClosed :: ![UnitId] -> DriverMessage + -- | Pass to a 'DriverMessage' the information whether or not the -- '-fbuilding-cabal-package' flag is set. data BuildingCabalPackage |