News for hackers. Stuff that matters.
Re:Haskell in the Newsroom [video] by gregory144 on Wednesday April 02, 2014 @11:59PM (#7520859)
Why do you say that unit testing is pointless in Haskell?

Edit: My bad - I missed the 100% part.

Re:Haskell in the Newsroom [video] by freyrs3 on Thursday April 03, 2014 @12:12AM (#7520895)
He said that aiming for 100% code-coverage tests in Haskell is pointless, not that unit-testing itself is pointless. Which I think is a pretty reasonable given that a lot of bugs cannot exist by construction in a lot of Haskell code.

Personally I very much enjoy unit-testing in Haskell especially with the new tasty library which makes combining all the Unit/QuickCheck/SmallCheck tests very pleasant.

[1] http://hackage.haskell.org/package/tasty

Re:Haskell in the Newsroom [video] by thirsteh on Thursday April 03, 2014 @12:42AM (#7520997)
Indeed. I'm not a fan of 100% code coverage tests in any language, but it's especially apparent in Haskell where, as you said, if code compiles (and you keep most of your functions pure), there are whole classes of bugs that simply cannot exist.
Re:Haskell in the Newsroom [video] by codygman on Thursday April 03, 2014 @12:07AM (#7520881)
"100% code coverage unit tests is a pointless endeavor"

Thirsteh said 100% coverage of unit tests is pointless, not that unit testing itself is pointless. I'm not totally sure what thirsteh means by "100% is a pointless endeavor" though.

Re:Haskell in the Newsroom [video] by ehsanu1 on Thursday April 03, 2014 @12:07AM (#7520880)
thirsteh said that 100% code coverage is pointless, not that unit testing is pointless.