Closed nikita-volkov closed 10 years ago
I agree that this operator is appropriate for the errors
library. My only request is to change the annotation to INLINABLE
instead of INLINE
, but other than that it looks good. If you write up a pull request I will merge it in. I can document it if you want.
Some time ago I brought a suggestion on the "libraries" mailing list up to include this function in the Prelude, but got rejected. I think it would fit nicely in this library accompanying the already existing
??
and!?
.For motivation here is a quote from my initial message on the mailing list: