WARNING pragmas in `Prelude.undefined` and `Prelude.error`

Henning Thielemann lemming at henning-thielemann.de
Mon Dec 23 12:02:56 UTC 2019


On Mon, 23 Dec 2019, Vilem Liepelt wrote:

> I agree that `error`/`undefined` can be legitimate; however often this 
> legitimacy rests on invariants that aren't necessary stable under 
> change-types-and-fix-errors-until-things-type-check style refactoring! 
> So after refactoring I'd like to switch on my `error`/`undefined` 
> warnings temporarily.

I assume a TotalHaskell pragma was proposed in the past. Would this help?


More information about the Libraries mailing list