Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Defines basic functions for printing error messages. It's hard to put these functions anywhere else without causing some unnecessary loops in the module dependency graph.
Panic :: String -> GhcExceptionghc GHC.Utils.Panic The impossible happened.
PprPanic :: String -> SDoc -> GhcExceptionghc GHC.Utils.Panic No documentation available.
PprProgramError :: String -> SDoc -> GhcExceptionghc GHC.Utils.Panic No documentation available.
PprSorry :: String -> SDoc -> GhcExceptionghc GHC.Utils.Panic No documentation available.
ProgramError :: String -> GhcExceptionghc GHC.Utils.Panic An error in the user's code, probably.
-
Defines a simple exception type and utilities to throw it. The PlainGhcException type is a subset of the GhcException type. It omits the exception constructors that involve pretty-printing via SDoc. The reason for this is to avoid import cycles / use of boot files. GHC.Utils.Outputable has many transitive dependencies. To throw exceptions from these modules, the functions here can be used without introducing import cycles.
PlainCmdLineError :: String -> PlainGhcExceptionghc GHC.Utils.Panic.Plain A problem with the command line arguments, but don't print usage.
-
ghc GHC.Utils.Panic.Plain This type is very similar to GhcException, but it omits the constructors that involve pretty-printing via SDoc. Due to the implementation of fromException for GhcException, this type can be caught as a GhcException. Note that this should only be used for throwing exceptions, not for catching, as GhcException will not be converted to this type when catching.
PlainInstallationError :: String -> PlainGhcExceptionghc GHC.Utils.Panic.Plain An installation problem.