I wonder if we should have a warning that suggests writing this:
Err NotFound -> ...
...when you currently have this:
Err _ -> ...
because it's clearer that you're not discarding any error info; rather, there isn't any more info to show
in other words, the warning would occur when there's an _ being used in place of a single tag (or {} I suppose) in a pattern
I guess that would also apply to \_ -> and \{} -> or for that matter {} <- and _ <-
since those are all patterns too
using an _ could indicate that no matter the reason you want to perform this action. Which is especially important when additional options can be added later, even if there is only a single option now.
Last updated: Jun 16 2026 at 16:19 UTC