[GHC] #11755: Seed unsafeGlobalDynFlags with enough information to use ppr

GHC ghc-devs at haskell.org
Fri Mar 25 15:36:07 UTC 2016


#11755: Seed unsafeGlobalDynFlags with enough information to use ppr
-------------------------------------+-------------------------------------
           Reporter:  bgamari        |             Owner:  bgamari
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  7.10.3
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  None/Unknown
  Unknown/Multiple                   |
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 At the moment the pretty-printer isn't functional if used before
 `DynFlags` is initialized by `initGhcMonad`. In particular things like
 `pprPanic` aren't usable since `unsafeGlobalDynFlags` isn't yet
 initialized. This is quite annoying during development.

 It seems like it should be possible to seed `unsafeGlobalDynFlags` with
 some minimal `DynFlags`, presumably with rather verbose output (as this is
 presumably what you want when debugging a compiler crash early in
 startup).

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11755>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list