[GHC] #7995: module Pretty's "text/str" rule doesn't fire
GHC
ghc-devs at haskell.org
Tue Jun 18 15:29:24 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:
-----------------------------+----------------------------------------------
In this trivial but characteristic example
{{{
import Pretty
import Data.IORef
main :: IO ()
main = do
_ <- newIORef (text "test")
return ()
}}}
the "text/str" rule, which optimizes calls to `Pretty.text` applied to a
string literal argument, doesn't fire. Likewise, such calls to
`Outputable.text` don't get rewritten either.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7995>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list