summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-29 19:42:20 -0400
committerBen Gamari <ben@smart-cactus.org>2022-07-15 17:44:06 -0400
commit997fc5727d135dcb0f5536581006923e8e9dbba6 (patch)
tree9bd5f9d3ff623a6bf304d2742f2efca595b627b1
parenta5664ab9c0a6f6e2fc46495f72e9005e2f939663 (diff)
downloadhaskell-wip/cmm-ppr.tar.gz
compiler: Add haddock sections to GHC.Utils.Panicwip/cmm-ppr
-rw-r--r--compiler/GHC/Utils/Panic.hs18
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