[GHC] #12091: 'Variable not in scope" when using GHCi with `-fobject-code`

GHC ghc-devs at haskell.org
Fri May 20 18:32:01 UTC 2016


#12091: 'Variable not in scope" when using GHCi with `-fobject-code`
-------------------------------------+-------------------------------------
        Reporter:  thomie            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  high              |            Milestone:
       Component:  GHCi              |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #7253             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by osa1):

 This is related with @roshats's patch as that's where we choose to compile
 `x = ...` as a statement instead of declaration (by "desugaring" it into
 `let x = ...`).

 Maybe we can do that now, unless someone has a better idea.

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


More information about the ghc-tickets mailing list