[GHC] #14391: Make the simplifier independent of the typechecker

GHC ghc-devs at haskell.org
Thu Sep 6 19:41:22 UTC 2018


#14391: Make the simplifier independent of the typechecker
-------------------------------------+-------------------------------------
        Reporter:  nomeata           |                Owner:  monoidal
            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):  Phab:D4503,
       Wiki Page:                    |  Phab:D5135
-------------------------------------+-------------------------------------
Changes (by monoidal):

 * differential:  Phab:D4503 => Phab:D4503, Phab:D5135


Comment:

 Thank you, this worked. I submitted [Phab:D5135].

 Going back to point 2 the original ticket, can we just remove this
 instance?

 {{{
 #!hs
  instance MonadThings CoreM where
      lookupThing name = do { hsc_env <- getHscEnv
                            ; liftIO $ lookupGlobal hsc_env name }
 }}}

 Nothing seems to use it, the testsuite passes, and this way we won't need
 `lookupGlobal` in CoreMonad.

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


More information about the ghc-tickets mailing list