diff options
author | Ben Gamari <ben@smart-cactus.org> | 2022-06-29 19:42:20 -0400 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-07-16 13:25:41 -0400 |
commit | fa0927454b02e4439d1683c2c3a3edd5b251dba1 (patch) | |
tree | c1cb7fdac3a5dfe4e4f4712c0dcbd68272a3cba0 /compiler | |
parent | f2e5e7631ffafe3225989f8b67646c833c00e3ec (diff) | |
download | haskell-fa0927454b02e4439d1683c2c3a3edd5b251dba1.tar.gz |
compiler: Add haddock sections to GHC.Utils.Panic
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/GHC/Utils/Panic.hs | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/compiler/GHC/Utils/Panic.hs b/compiler/GHC/Utils/Panic.hs index 398a97524c..f0dde90763 100644 --- a/compiler/GHC/Utils/Panic.hs +++ b/compiler/GHC/Utils/Panic.hs @@ -12,30 +12,36 @@ -- It's hard to put these functions anywhere else without causing -- some unnecessary loops in the module dependency graph. module GHC.Utils.Panic - ( GhcException(..) + ( -- * GHC exception type + GhcException(..) , showGhcException , showGhcExceptionUnsafe , throwGhcException , throwGhcExceptionIO , handleGhcException + -- * Command error throwing patterns , pgmError , panic , pprPanic - , assertPanic - , assertPprPanic - , assertPpr - , assertPprM - , massertPpr , sorry , panicDoc , sorryDoc , pgmErrorDoc , cmdLineError , cmdLineErrorIO + -- ** Assertions + , assertPanic + , assertPprPanic + , assertPpr + , assertPprM + , massertPpr + + -- * Call stacks , callStackDoc , prettyCallStackDoc + -- * Exception utilities , Exception.Exception(..) , showException , safeShowException |