See discussion on IRC
2 patches for repository http://darcs.net/screened:
patch 115d5855e2a65e23623c067c3d9413713600c470
Author: Ben Franksen <ben.franksen@online.de>
Date: Wed Jun 2 22:34:01 CEST 2021
* Darcs.Util.ByteString: avoid throwing exceptions from pure code
patch 3010611c8928469c81d00a029531d5cfd0f2fa8c
Author: Ben Franksen <ben.franksen@online.de>
Date: Wed Jun 2 22:36:13 CEST 2021
* Darcs.Util.SignalHandler: replace throw with throwIO
For a bit more background as tracking down the IRC conversation wouldn't be
trivial: this stemmed from https://gitlab.haskell.org/ghc/ghc/-/issues/19917
That made it clear that you can't really rely on calling "error" in pure
code and actually getting that specific error.
Code changes look fine.