diff options
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 = |