[GHC] #13614: Rewrite rules not applied exhaustively when simplifying from plugin
GHC
ghc-devs at haskell.org
Wed Apr 26 21:50:52 UTC 2017
#13614: Rewrite rules not applied exhaustively when simplifying from plugin
-------------------------------------+-------------------------------------
Reporter: nomeata | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHC API | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by nomeata):
> I wonder if you have ensured that GHC.Base is loaded? If the interface
is not loaded, GHC won't see the rule.
Yes, `GHC.Base` is loaded.
I was under the impression that (non-orphan) rules are attached to the
`ID`, so should it matter? Or is that only true for locally defined rules?
Or is `GHC.Base` special in that matter?
In the above plugin code, the result of `getRuleBase` is indeed empty, and
so is `mg_rules guts`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13614#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list