title: Haskell functions left-to-right
body: <p>I have a function that I use quite frequently, which allows me to write my code in a way which seems more natural to me.</p>
  
  <pre><code>infixl 6 $:
  ($:) :: a -&gt; (a -&gt; b) -&gt; b
  a $: f = f a
  </code></pre>
  
  <p>This lets me do something like</p>
  
  <pre><code>let x = getData
          $: sort
          $: group
          $: aggregate
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>let x = aggregate 
          $ group 
          $ sort 
          $ getData
  </code></pre>
  
  <p>I recently learned that Clojure has something like this built in (I don't know much Clojure, but I think it would be written <code>(-&gt; getData sort group aggregate)</code>?) which makes me wonder if Haskell has it built in as well. Hoogle <a href="http://www.haskell.org/hoogle/?hoogle=a+-%3E+%28a+-%3E+b%29+-%3E+b" rel="nofollow noreferrer">doesn't have any results</a> though. </p>
  
  <p>Are there any standard libs with something similar included? It probably makes my code hard for others to read if I have such a common part is idiosyncratic.</p>