
#14391: Make the simplifier independent of the typechecker -------------------------------------+------------------------------------- Reporter: nomeata | Owner: ulysses4ever Type: task | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.3 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by ulysses4ever): * owner: (none) => ulysses4ever Comment: I have one more question about `tcLookupGlobal` (hope the last one for it). Here its part: {{{ if nameIsLocalOrFrom (tcg_semantic_mod env) name then notFound name -- Internal names can happen in GHCi else }}} I have trouble with `notFound` part which essentially does careful error- reporting inside `Tc` monad. I'm lost on how to port this to IO with the same amount of precision. So far I come up with dumb solution (to be placed in the `then` branch): {{{ pprPanic "lookupGlobal" (ppr name) }}} It is probably not good enough. Or is it? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14391#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler