title: Formatting statements within functions - rules?
body: <p>Consider:</p>
  
  <pre><code>myFunction :: (Eq a) =&gt; a -&gt; a -&gt; [a]
  myFunction v1 v2 = statement_1.. $ statement_2... $ statement_3...
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>myFunction :: (Eq a) =&gt; a -&gt; a -&gt; [a]
  myFunction v1 v2 = statement_1 result_1 result_2
      where
        result_2 = statement_2
        result_3 = statement_3
  </code></pre>
  
  <p>Is there a rule of thumb as to which format is preferred in Haskell? Are there any specific rules as to when to use each version? </p>