<div dir="auto">I would want the compiler (or linter) to help me here. Think if a mid-to-large team where everyone may not know (or remember) what the current best practices are. </div><div class="gmail_extra"><br><div class="gmail_quote">On 31 Jan 2017 9:51 am, "Michael Orlitzky" <<a href="mailto:michael@orlitzky.com">michael@orlitzky.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 01/30/2017 09:47 PM, Saurabh Nanda wrote:<br>
> Hi,<br>
><br>
> If I have the following ADT<br>
><br>
> data BookingState = Confirmed | Cancelled<br>
><br>
> which had a very high chance of being expanded in the future to have more<br>
> values. How do I ensure that every pattern match on BookingState matches<br>
> each value explicitly. Basically prevent the '_' matcher ?<br>
><br>
<br>
Don't write the "_" case? GHC will warn you about any pattern matches<br>
you've missed.<br>
<br>
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>