Re:GHC 7.6 is now live: poly kinds, dynamic use of cores, nu...
by sadga on Friday September 07, 2012 @05:02PM
(#4491156)
`if` is not a function. http://www.haskell.org/haskellwiki/If-then-else#Replace_synt...
Functional `if` and `cond` are here: http://hackage.haskell.org/packages/archive/cond/0.4.0.1/doc...
Re:GHC 7.6 is now live: poly kinds, dynamic use of cores, nu...
by tmhedberg on Friday September 07, 2012 @05:31PM
(#4491280)
Did I suggest that it was a function? If so, I didn't intend to.
Re:GHC 7.6 is now live: poly kinds, dynamic use of cores, nu...
by Evbn on Friday September 07, 2012 @11:39PM
(#4492157)
'If' is not quite analogous to cond, and 'if' is a bit of a hack, and multiway is more hack on top, is all I wanted to highlight.
And the cond you wanted has already been here for you.
I'm particularly interested in the new type-level literals (which seem like they will make it much less cumbersome to express certain static constraints) and the convenient new syntax for multi-way if expressions (I've long wanted Lisp's `cond` in Haskell) and case analysis on lambda arguments.