I have implemented something like that actually: https://github.com/cgohla/pledge
Working out a portable API could be difficult.
-------- Original message --------
From: Hécate <hecate@glitchbra.in>
Date: 27/12/22 20:39 (GMT+00:00)
To: ghc-devs@haskell.org
Subject: Re: Deprecating Safe Haskell, or heavily investing in it?
Thanks for your input Viktor!