[Haskell-cafe] Typeclassable typeclass?
eir at cis.upenn.edu
Mon Aug 3 22:04:55 UTC 2015
On Aug 3, 2015, at 11:02 AM, Zemyla <zemyla at gmail.com> wrote:
> 1) Can this be implemented with GHC as it is now?
> 2) Could this be implemented at all with any reasonable amount of work?
Depends on how reasonable you are. :)
The problem is that this would require all of the instance tables and lookup machinery to be available at runtime. Currently, that stuff is around only at compile time. So this would be a big change.
> 3) Should this be implemented? Would the benefits outweigh the costs?
I have a better idea of the costs than of the benefits here. The costs are non-trivial, to be sure. What are the benefits?
It is an interesting idea, though!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe