Remove inaccurate information from the Show instance of ErrorWrapper

This commit is contained in:
Andrzej Rybczak 2023-11-14 13:09:21 +01:00
parent 253133f7cf
commit 87955a807e
3 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,8 @@
# effectful-core-2.3.0.2 (2023-??-??)
* Remove inaccurate information from the `Show` instance of `ErrorWrapper`.
# effectful-core-2.3.0.1 (2023-11-13)
* Prevent internal functions from appending calls stack frames to handlers.
* Prevent internal functions from appending call stack frames to handlers.
# effectful-core-2.3.0.0 (2023-09-13)
* Deprecate `withConcEffToIO`.

View File

@ -1,7 +1,7 @@
cabal-version: 2.4
build-type: Simple
name: effectful-core
version: 2.3.0.1
version: 2.3.0.2
license: BSD-3-Clause
license-file: LICENSE
category: Control

View File

@ -227,10 +227,6 @@ data ErrorWrapper = ErrorWrapper !ErrorId CallStack Any
instance Show ErrorWrapper where
showsPrec p (ErrorWrapper _ cs _)
= ("Effectful.Error.Static.ErrorWrapper\n\n" ++)
. ("If you see this, most likely there is a stray 'Async' action that\n" ++)
. ("outlived the scope of the 'Error' effect, was interacted with and threw\n" ++)
. ("an error to the parent thread. If that scenario sounds unlikely, please\n" ++)
. ("file a ticket at https://github.com/haskell-effectful/effectful/issues.\n\n" ++)
. showsPrec p (prettyCallStack cs)
instance Exception ErrorWrapper