<br><div class="gmail_quote">On Thu, Jun 19, 2008 at 3:35 AM, Ketil Malde &lt;<a href="mailto:ketil@malde.org">ketil@malde.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">jinjing &lt;<a href="mailto:nfjinjing@gmail.com">nfjinjing@gmail.com</a>&gt; writes:<br>
<br>
&gt; Any way here&#39;s the code:<br>
<br>
&gt; module Dot where<br>
&gt; import Prelude hiding ( (.) )<br>
<br>
&gt; (.) :: a -&gt; (a -&gt; b) -&gt; b<br>
&gt; a . f = f a<br>
<br>
&gt; infixl 9 .<br>
<br>
</div>Isn&#39;t this (roughly?) the same as flip ($)?<br>
<br>
As a side note, may I advise you to use another symbol, and leave the<br>
poor dot alone? Overloading it as a module separator is bad enough.<br>
If you have a keyboard that allows greater-than-ascii input, there are<br>
plenty of options: « » ¡ £ ¥ ł € &reg; ª...<br>
<div class="Ih2E3d"></div></blockquote><br>Note that there already is a standard symbol for this, (&gt;&gt;&gt;) from Control.Arrow.&nbsp; Well, actually (&gt;&gt;&gt;) is more general than backwards function composition, so maybe making your own symbol is still a good idea while you&#39;re learning.<br>
<br>-Brent<br></div><br>