diff options
author | Sven Tennie <sven.tennie@gmail.com> | 2022-02-23 19:03:47 +0100 |
---|---|---|
committer | Sven Tennie <sven.tennie@gmail.com> | 2022-02-23 19:03:47 +0100 |
commit | 6cf92af292f99c3ef01e85f1e204be1efad1ecb1 (patch) | |
tree | 8b82457097ea84872929a995e92a0a3d7cc59a6f /libraries/base/GHC/Exception.hs | |
parent | 73547190c7c72915bf56e833bf2f64c8406aabd6 (diff) | |
download | haskell-wip/ghc-exception-stacktraces.tar.gz |
Apply haddock suggestions from the proposal PRwip/ghc-exception-stacktraces
Diffstat (limited to 'libraries/base/GHC/Exception.hs')
-rw-r--r-- | libraries/base/GHC/Exception.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/Exception.hs b/libraries/base/GHC/Exception.hs index b66958f2d0..8e856ca2cc 100644 --- a/libraries/base/GHC/Exception.hs +++ b/libraries/base/GHC/Exception.hs @@ -56,8 +56,8 @@ import GHC.Stack.Types -- 'Backtrace' backtraces are collected according to the configured -- 'BacktraceMechanism's. -- --- WARNING: You may want to use 'throwIO' instead so that your pure code --- stays exception-free. +-- WARNING: If you are in an `IO` context you may want to rather use 'throwIO' +-- instead so that your pure code stays exception-free. throw :: HasCallStack => forall (r :: RuntimeRep). forall (a :: TYPE r). forall e. Exception e => e -> a throw e = |