
#9736: Constant folding rules are wrong for GHCJS -------------------------------------+------------------------------------- Reporter: luite | Owner: luite Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: | Blocked By: None/Unknown | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): Can you be more specific? Why are these "optimisations" wrong for GHCJS? Could they be wrong for other architectures? Concretely, what change do you propose? Built-in rules (like those in `PrelRules` have access to `DynFlags`. If necessary you could make the rule conditional on the `GHCJS` flag (whatever that is). Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9736#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler