<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Actually in team, one who writes `_` match, is very useful as
that prevents breaking code when adding new value...<br>
</p>
I can't really see any problem here. There is real world use case
when member of team don't need to cover all cases therefore `_`.<br>
<br>
<div class="moz-cite-prefix">On 01/31/2017 05:59 AM, Saurabh Nanda
wrote:<br>
</div>
<blockquote
cite="mid:CAPz=2oHDcB72SbgO_xNg-SxQ=yt4+Mir7baGTdi66q--HgnzSA@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
</blockquote>
<br>
</body>
</html>