[GHC] #13305: static: check for identifiers should only consider term level variables
GHC
ghc-devs at haskell.org
Wed Feb 22 13:58:35 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 edsko):
> I'm surprised that is accepted, and I am no longer sure of what the
specification is, or how it is implemented. (E.g. if you wrote Num a
instead of, or as well as, Typeable a it would not work.)
This is because the `Typeable` comes from `static` itself; we can have
polymorphic static values (but they must be `Typeable`); we do not support
adhoc polymorphism (and workaround this all the time using `Dict`s).
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13305#comment:8>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list