#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 simonpj@…): commit d2c3630dedc577f7e6eb8e945b05a86992bd5e0a {{{ Author: Simon Peyton Jones <simonpj@microsoft.com> Date: Fri Jun 21 17:41:26 2013 +0100 Make sure that Pretty.text is inlined in stage 0, so that RULE text/str gets a chance to fire (Trac #7995). And make sure that Outputable.text is inlined, so that the underlying Pretty.text rule can fire. The thing is that literal strings only turn into unpackCString# in phase 1. compiler/utils/Outputable.lhs | 3 +++ compiler/utils/Pretty.lhs | 4 +++- 2 files changed, 6 insertions(+), 1 deletions(-) }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7995#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler