title: How can a homemade Haskell program to check if an integer is even be written?
body: <p>I'm very new to Haskell, with my only prior programming knowledge being in Python. I'm trying to write a program for a part of a homework assignment that will take an integer <em>n</em> and return either True or False depending on whether or not <em>n</em> is even. I'm trying to use if/then/else as well as the built-in mod function, but I just can't quite seem to nail down the proper syntax.</p>
  
  <pre><code>iseven n = mod n 2
  if n == 0 
  then n = True
  else n = False
  </code></pre>
  
  <p>If someone could point me in the right direction, it would be greatly appreciated.</p>