[GHC] #4359: Implement lambda-case/lambda-if
GHC
cvs-ghc at haskell.org
Tue Oct 5 10:13:37 EDT 2010
#4359: Implement lambda-case/lambda-if
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.1
Keywords: | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by igloo):
Replying to [comment:2 malcolm.wallace@…]:
> I would disagree that monadic bindings are the only (or even a major)
use case.
By "The motivating examples" I meant "The motivating examples in the
thread linked to".
> Personally, I would often like the ability to have a standard lambda
that can discriminate patterns on the value being bound.
Do you have any realworld examples, OOI?
From a style point of view, using it point-free, as in your example, I
think looks OK, but if it was being applied to something non-trivial (or
even being composed with something non-trivial) I think it would be
clearer if written using a let-bound function.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4359#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list