<p dir="ltr">Go in the other direction?</p>
<p dir="ltr">data T a b = T a b</p>
<p dir="ltr">type T2 a b c = T a (b, c)</p>
<p dir="ltr">type T3 a b c d = T a (b, c, d)</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Aug 22, 2016 5:40 AM, "Imants Cekusins" <<a href="mailto:imantc@gmail.com">imantc@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">David, this seem to work similar to forall...:<div><br></div><div>synonym is not compatible with T a b.</div><div><br></div><div>you see, I hope to mix synonym with original T a b in a chain of fun calls. </div><div><br></div><div>Some of the funs accept args like this:</div><div>fun1::T a b -> a -> out1<br></div><div><br></div><div>.. and others - like this:</div><div>fun2::T' -> out2<br></div><div>in both cases a and b are not set. However in fun1 I try to enforce type 'a' in the arg #2.</div><div><br></div><div><br></div></div>
<br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/beginners</a><br>
<br></blockquote></div></div>