News for hackers. Stuff that matters.
Re:Haskell School of Music by Paul Hudak by sharkbot on Saturday April 21, 2012 @12:38AM (#3870919)
I pulled the Euterpea source from the website and tried the tutorial in GHCi 7.0.4. It complained that the definition of

  times (n+1) m 
is invalid.

If anyone is trying out the tutorial and gets the same error, replace that definition of "times" with

  times n m = m :+: (times (n-1) m) 
and you should be good.
Re:Haskell School of Music by Paul Hudak by zura on Saturday April 21, 2012 @04:13AM (#3871275)
Hm, I guess that means n+k pattern matching is finally removed.
Re:Haskell School of Music by Paul Hudak by sold on Saturday April 21, 2012 @07:28AM (#3871529)
Yes, it was removed in the Haskell 2010 standard, which is the default from GHC 7.0. http://hackage.haskell.org/trac/haskell-prime/wiki/RemoveNPl...