[GHC] #7995: module Pretty's "text/str" rule doesn't fire
GHC
ghc-devs at haskell.org
Tue Jun 18 16:01:52 CEST 2013
#7995: module Pretty's "text/str" rule doesn't fire
-----------------------------+----------------------------------------------
Reporter: parcs | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.7 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: None/Unknown | Blockedby:
Blocking: | Related:
-----------------------------+----------------------------------------------
Comment(by parcs):
I can think of two solutions:
1) Mark `Pretty.text` as `NOINLINE` to ensure that the "text/str" rule has
a chance to fire and that `Pretty.text` doesn't get inlined into the
unfolding of `Outputable.text`. This solution has the caveat that
`Pretty.text` can no longer get inlined.
2) Add a corresponding "text/str" rule on `Outputable.text` and mark both
`Pretty.text` and `Outputable.text` as `NOINLINE [0]` (to ensure that the
rules get a chance to fire).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7995#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list