
Hi, I've proposed something like this in the past (which was rightfully rejected). You may be interested in the discussion here: https://github.com/ghc-proposals/ghc-proposals/pull/22 Sylvain On 12/07/2021 20:24, Lana Black wrote:
Hello cafe,
Is it possible in Haskell to check a lack of a certain constraint?
For example,
``` foo :: C => a foo = undefined
```
Here `foo` can only be compiled if called with C satisfied. How do I write the opposite, so that `foo` is only possible to use when C is not satisfied?
With best regards.
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.