
#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 goldfire): I think your first '''Edit:''' in comment:13 is orthogonal to the overall ticket and could be accomplished by generalizing `Eq` along similar lines to what you've done but without representation polymorphism. And we must be careful: while this is a new sword that slays many beasts, it doesn't slay ''all'' beasts, nor should we expect it to. Your '''Edit 2''' looks like a beast it doesn't slay. Some smart design will be needed for us to learn how to wield this sword, and I would favor implementing this all in a library for a cycle before thinking about moving anything into `base`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12708#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler