[GHC] #14219: Include source location information in -ddump-rule-rewrites
GHC
ghc-devs at haskell.org
Tue Sep 12 13:45:33 UTC 2017
#14219: Include source location information in -ddump-rule-rewrites
-------------------------------------+-------------------------------------
Reporter: harendra | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.2.1
(Debugging) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Debugging | Unknown/Multiple
information is incorrect | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
> Is it feasible/worth it to implement dumping the builtin rules via the
-ddump-rules option?
Sadly built-in rules can do things that are hard to express using ordinary
LHS/RHS pairs. Like rewriting `4+5` to `9`. That's why they are
implemented in code, not pattern matching.
It would be a worthy thing to document all the built-in rules in
`PrelRules` in the manual.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14219#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list