title: Haskell - parsing error on input '=' ghc
body: <p>I am trying to implement the fibonacci function in haskell just to try the language out, but I am already stuck at just compiling my program. I have the following code:</p>
  
  <pre><code>main = do
      fib :: (Num a) =&gt; a -&gt; a
      fib 0 = 0
      fib 1 = 1
      fib x = fib (x - 1) + fib (x - 3)
      fib 348
  </code></pre>
  
  <p>I don't know what I am doing wrong. This is the output of ghc while compiling it with <code>ghc --make fib.hs</code></p>
  
  <pre><code>[1 of 1] Compiling Main           ( fib.hs, fib.o )
  fib.hs:3:15: parse error on input `=´
  </code></pre>
  
  <p>In case this is relevant, I am using windows.</p>