<p dir="ltr">That is more consistent, but it leaves no room to intersperse auxiliary definitions, which strikes me as unfortunate for practical reasons.</p>
<div class="gmail_quote">On Feb 18, 2016 5:43 AM, "Tobias Florek" <<a href="mailto:haskell@ibotty.net">haskell@ibotty.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi.<br>
<br>
For consistency reasons, I'd love to write the following, possibly even<br>
omiting the closed keyword.<br>
<br>
> {-# LANGUAGE ClosedClasses #-}<br>
> closed class Closed a b where<br>
>   fun :: a -> b -> Int<br>
>   instance Closed Int y where fun x _ = x<br>
>   instance Closed x Int where fun _ y = y<br>
>   instance Closed x y where fun _ _ = 0<br>
<br>
I guess, that's already bikeshedding.<br>
<br>
Cheers,<br>
 Tobias Florek<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><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>
</blockquote></div>