<p dir="ltr">Hi Paul,</p>
<p dir="ltr">I'm nit experienced in Haskell, so I don't have a solution. But the following keywords spring to mind:<br>
Ignore the syntactic sugar and see if any of the alternative syntaxes are more flexible<br>
<a href="https://wiki.haskell.org/Case">https://wiki.haskell.org/Case</a></p>
<p dir="ltr">Create a DSL.</p>
<p dir="ltr">Greetings,</p>
<p dir="ltr">Bram</p>
<br><div class="gmail_quote"><div dir="ltr">On Thu, 15 Jun 2017, 16:13 Baa, <<a href="mailto:aquagnu@gmail.com">aquagnu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, Everyone!<br>
<br>
As I understand "MultiCase" proposal was not approved, so my question<br>
is: is there alternatives to multi-case? I have code like:<br>
<br>
case x of<br>
A a -> ..<br>
B b -> ..<br>
C c -> --same--<br>
D c -> --same--<br>
<br>
and I want to merge code of "C c" with "D c" branch. Anywhere, in<br>
general: is any alternatives to make "OR"s in patterns? I don't see how<br>
to do it with pattern guards, pattern synonyms, views extensions and<br>
don't see another related extensions.<br>
<br>
Something like "(C|D) c -> ..."<br>
<br>
<br>
===<br>
Best regards, Paul<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>