I think that this can help you.
http://book.realworldhaskell.org/read/testing-and-quality-assurance.html