summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-06-29 19:42:20 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-07-16 13:25:41 -0400
commitfa0927454b02e4439d1683c2c3a3edd5b251dba1 (patch)
treec1cb7fdac3a5dfe4e4f4712c0dcbd68272a3cba0
parentf2e5e7631ffafe3225989f8b67646c833c00e3ec (diff)
downloadhaskell-fa0927454b02e4439d1683c2c3a3edd5b251dba1.tar.gz
compiler: Add haddock sections to GHC.Utils.Panic
-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