#7364: `foo !f = id . f` becomes non-strict with -O2
---------------------------------+------------------------------------------
Reporter: shachaf | Owner:
Type: bug | Status: new
Priority: normal | Milestone: _|_
Component: Compiler | Version: 7.6.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Incorrect result at runtime
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by simonpj):
* difficulty: => Unknown
* milestone: => _|_
Comment:
Indeed. See #5587 and the
[http://www.haskell.org/ghc/docs/latest/html/users_guide/bugs-and-
infelicities.html#infelicities-exprs-pats user manual section]. I still
don't know how to get good optimisation without accepting this infelicity.
Better ideas welcome.
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7364#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs