[GHC] #12708: RFC: Representation polymorphic Num
GHC
ghc-devs at haskell.org
Fri Oct 14 22:58:22 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:
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 Iceland_jack):
Should this not be allowed when `minBound :: () -> a` is allowed?
{{{#!hs
class Bounded (TYPE rep) where
minBound :: a
minBound :: a
}}}
for
{{{#!hs
instance Bounded Int# where
minBound :: Int#
minBound = -9223372036854775808#
maxBound :: Int#
maxBound = 9223372036854775807#
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12708#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list