News for hackers. Stuff that matters.
Re:Glasgow Haskell Compiler 7.2.1 released by danieldk on Wednesday August 10, 2011 @07:06AM (#2867647)
Woohoo, Monad comprehensions :):

http://www.haskell.org/ghc/docs/7.2.1/html/users_guide/synta...

This improve code readability when used judiciously.

Re:Glasgow Haskell Compiler 7.2.1 released by hesselink on Wednesday August 10, 2011 @09:24AM (#2868048)
What monad would you use them for? I've never seen a really good use case.
Re:Glasgow Haskell Compiler 7.2.1 released by jerf on Wednesday August 10, 2011 @10:27AM (#2868334)
I think LINQ is a special case of a monad comprehension. Syntax checked, type checked, composeable query languages (of which the "Structured" Query Language is only one example) are good things.

So far everywhere where I might have been tempted to use a Maybe monad comprehension, applicative functors were more clear anyhow.

Re:Glasgow Haskell Compiler 7.2.1 released by samg_ on Wednesday August 10, 2011 @12:48PM (#2869070)
You are right about query languages being a good for for monad comprehensions. See Torston Grust's dissertation[1], specifically "Combinators from Monad Comprehensions."

1. http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.88.9...

Re:Glasgow Haskell Compiler 7.2.1 released by ourfrank on Wednesday August 10, 2011 @09:36AM (#2868094)
Probably the Maybe monad most often, in usual code.

Or really as a shorter way of writing any smaller monadic code blocks.

I really look forward to using this new feature.

Re:Glasgow Haskell Compiler 7.2.1 released by danieldk on Wednesday August 10, 2011 @09:44AM (#2868119)
I don't know for sure until I try, but I think can be useful for logic monads.
Re:Glasgow Haskell Compiler 7.2.1 released by tmorgan on Wednesday August 10, 2011 @10:01AM (#2868207)
There is some pretty cool stuff in there for a point release. It's cool that monad comprehensions are back in, but I'm most excited about Safe Haskell, which should enable enable some new types of application (safely running untrusted code).
Re:Glasgow Haskell Compiler 7.2.1 released by gwern on Wednesday August 10, 2011 @10:58AM (#2868506)
As I keep telling people, 'Safe Haskell' is not as generally useful as they think it is. Mueval (http://hackage.haskell.org/package/mueval) has to do a lot more than just be careful with its imports before it can safely run arbitrary untrusted code.
Re:Glasgow Haskell Compiler 7.2.1 released by lallysingh on Wednesday August 10, 2011 @01:40PM (#2869299)
Quite relevantly to day-to-day use, ghci's got multiline input and the ability to load up scripts. No more copy-paste out of scratch in emacs!
Re:Glasgow Haskell Compiler 7.2.1 released by pawelwentpawel on Wednesday August 10, 2011 @07:42AM (#2867748)
Good timing, I have haskell exam in 2 hrs ;)
Re:Glasgow Haskell Compiler 7.2.1 released by soapdog on Wednesday August 10, 2011 @02:34PM (#2869543)
good luck!!! you should have finished it by now! :-)