[Haskell-cafe] TDD in Haskell

Liam O'Connor liamoc at cse.unsw.edu.au
Tue May 25 07:40:09 EDT 2010


QuickCheck is great for TDD. I have used it for such purposes. You
literally encode the contract of the function as quickcheck
properties. It's very lovely.
Cheers.
~Liam
>
>
>
> On 25 May 2010 21:36, Ionut G. Stan <ionut.g.stan at gmail.com> wrote:
>> Hi,
>>
>> I'm doing TDD in pretty much all of the languages that I know, and I want to
>> introduce it early in my Haskell learning process. I wonder though, if
>> there's some established process regarding TDD, not unit testing.
>>
>> I've heard of QuickCheck and HUnit, but I've also read that QuickCheck is
>> used mostly for testing pure code, while HUnit for impure code?
>>
>> What framework lends itself better for writing tests before the actual
>> production code? Can you point out to some resources regarding this?
>>
>>
>> Oh, and a small off-topic question? Is it considered a good practice to use
>> implicit imports in Haskell? I'm trying to learn from existing packages, but
>> all those "import all" statements drive me crazy.
>>
>> Thanks,
>> --
>> Ionuț G. Stan  |  http://igstan.ro
>> _______________________________________________
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
>


More information about the Haskell-Cafe mailing list