
To add, I know quite a few developers who, during development, use undefined in place of an "I don't know yet" to get the program compiling, then perhaps might add an underscore _undefined to determine the type. Using undefined is perhaps less preferable to using :reload! but it's quite a bit to type and :r! doesn't work. On 22/12/19 10:26 pm, Francesco Ariis wrote:
On Sun, Dec 22, 2019 at 01:44:58PM +0200, Vilem Liepelt wrote:
Has there been any discussion about adding WARNING pragmas to `Prelude.undefined` and `Prelude.error`, as done in some custom preludes?
I suppose this hasn't been done yet to avoid breaking existing code which makes "legitimate" use of those helpers? `undefined` is useful when you want to check types in, e.g. ghcid, without writing a function in full. With -Wall on, that Warning could become annoying fast.
Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries