title: Using guards in let .. in expressions
body: <p>Sometimes I write code like this</p>
  
  <pre><code>solveLogic :: Int -&gt; Int -&gt; Int
  solveLogic a b =
      let 
          x = 1
          brainiac
              | a &gt;= x     = 1
              | a == b     = 333
              | otherwise  = 5
      in
          brainiac
  </code></pre>
  
  <p>And every time I have urge to write this things without unneeded "brainiac" function,  like this:</p>
  
  <pre><code>solveLogic :: Int -&gt; Int -&gt; Int
  solveLogic a b =
      let 
          x = 1
      in
          | a &gt;= x     = 1
          | a == b     = 333
          | otherwise  = 5
  </code></pre>
  
  <p>Which code is much more "Haskellish". Is there any way of doing this? </p>