title: Haskell Error - Naked Expression at Top Level
body: <p>I have the following code:</p>
  
  <pre><code>fib n
      | n == 0  = 0
      | n == 1  = 1
      | n &gt; 1  = fib (n-1) + fib (n-2)
  
  print fib 5
  </code></pre>
  
  <p>And for some reason, it's throwing an error:</p>
  
  <pre><code>[1 of 1] Compiling Main             ( test.hs, test.o )
  
  test.hs:8:1: Parse error: naked expression at top level
  </code></pre>
  
  <p>What's going on?</p>