title: Simple haskell unit testing
body: <p>I want to go through <a href="http://www.haskell.org/haskellwiki/99_questions/1_to_10" rel="noreferrer">99 Haskell Problems</a>, and I want to concentrate on the solution but with testing. If I have the solution to the first problem as a 3 line <code>.hs</code> file,</p>
  
  <pre><code>myLast :: [a] -&gt; a
  myLast [x] = x
  myLast (_:xs) = myLast xs
  </code></pre>
  
  <p>What is the minimal amount of code I can add to this so that I can add tests inline and run them with <code>runhaskell</code>?</p>