title: How can I set up a simple test with Cabal?
body: <p>I have a Haskell project and Cabal package-description that allows me to build and install my package with</p>
  
  <pre>$ cabal configure
  $ cabal build
  $ cabal install</pre>
  
  <p>But what about <code>cabal test</code>? Cabal's help says to configure a test suite with UserHooks, but how can I do that?</p>