News for hackers. Stuff that matters.
Re:Learning Real Haskell Incrementally [video] by asgard1024 on Sunday October 25, 2015 @03:45AM (#10446292)
What projects in Haskell are considered to have well-written, idiomatic code?

I looked at some about a year ago but almost all projects I saw had lot of IO and bangs everywhere.

Re:Learning Real Haskell Incrementally [video] by wereHamster on Sunday October 25, 2015 @04:15AM (#10446324)
Of course you'll see lots of IO. An application without side effects is rather useless.
Re:Learning Real Haskell Incrementally [video] by skm on Sunday October 25, 2015 @11:25AM (#10447108)
Don Stewart has given possibly the best answer to this question on StackOverflow: http://stackoverflow.com/questions/6398996/good-haskell-sour...
Re:Learning Real Haskell Incrementally [video] by asgard1024 on Sunday October 25, 2015 @03:16PM (#10447964)
Thanks, I almost lost hope that I will get a sensible answer. I don't buy the argument that real world code cannot be pretty; what would be the reason to use Haskell, then?
Re:Learning Real Haskell Incrementally [video] by plonh on Sunday October 25, 2015 @11:44AM (#10447162)
Bangs are well written and idiomatic Haskell code. Haskell is a default-lazy language. Good code uses lazy algorithms (to avoid wasted work) and strict data structures (to avoid space leaks), so efficient data structures need the bangs.
Re:Learning Real Haskell Incrementally [video] by kqr on Sunday October 25, 2015 @04:39AM (#10446364)
Real-world code (which is what most projects consist of) is rarely fully idiomatic and well-written, because it contains fixes to weird edge cases only some users experience, performance optimisations and such.
Re:Learning Real Haskell Incrementally [video] by plonh on Sunday October 25, 2015 @11:46AM (#10447166)
You mean production code doesn't look as pretty and toy code. Production code that performs well is well written and idiomatic if it follows the common practices of production code.