[GHC] #12708: RFC: Representation polymorphic Num
GHC
ghc-devs at haskell.org
Tue Dec 13 14:55:33 UTC 2016
#12708: RFC: Representation polymorphic Num
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Core Libraries | Version: 8.0.1
Resolution: | Keywords:
| LevityPolymorphism
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 goldfire):
Replying to [comment:25 oerjan]:
> The question is, how would you store the necessary `Int#` in the
dictionary? It seems to me you'd have to use some kind of indirection
because otherwise you have a dictionary field than can have arbitrary
size.
Spot on. You're right -- we would have a problem with `Bounded`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12708#comment:26>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list