<div dir="ltr">As of at least recently, empty cases are entirely permitted (and used for e.g. Void / nullary types).</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019 at 3:08 PM Johannes Waldmann <<a href="mailto:johannes.waldmann@htwk-leipzig.de">johannes.waldmann@htwk-leipzig.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> The rule "alt" allows "(empty alternative)"<br>
<br>
Ah, yes. But no? The standard says<br>
<br>
> A case expression must have at least one alternative<br>
> and each alternative must have at least one body.<br>
<br>
Should this be "each non-empty alternative must have ..."?<br>
<br>
I think the intention is to allow<br>
<br>
    case () of () | False -> () | True -> ()<br>
<br>
(one alternative, two bodies) but to disallow<br>
<br>
    case () of ()<br>
<br>
(one alternative, no body)<br>
<br>
- J.<br>
_______________________________________________<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-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>