[GHC] #13305: static: check for identifiers should only consider term level variables

GHC ghc-devs at haskell.org
Wed Feb 22 11:36:09 UTC 2017


#13305: static: check for identifiers should only consider term level variables
-------------------------------------+-------------------------------------
        Reporter:  edsko             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
                                     |  StaticPointers
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by facundo.dominguez):

 Given that this is accepted in the current implementation:
 {{{
 g :: Typeable a => StaticPtr (Proxy a)
 g = static Proxy
 }}}
 I guess that Edsko is asking to treat `foo` as if it was `g`. Which might
 be accomplished by just relaxing a bit the closedness check.

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


More information about the ghc-tickets mailing list