title: Haskell Where Syntax
body: <p>wondering what's syntactically wrong with this function?</p>
  
  <pre><code>isPrime :: Int -&gt; Bool
  isPrime a = go a (a - 1)
          where 
          go a b 
          |b == 1 = True
          |a / b == 0 = False
          |otherwise = isPrime a (b - 1)
  </code></pre>
  
  <p>Just a simple function to determine whether a number is prime or not, thanks.</p>
  
  <pre><code>isPrime :: Int -&gt; Bool
  isPrime a = go a (a - 1)
      where 
          go a b 
              |b == 1 = True
              |a / b == 0 = False
              |otherwise = isPrime a (b - 1)
  </code></pre>
  
  <p>I now have this, but still get compilation errors?</p>