MicroHs icon indicating copy to clipboard operation
MicroHs copied to clipboard

Type roles vs. type classes

Open amigalemming opened this issue 1 year ago • 3 comments

I remember a blog post of you (but cannot find it anymore) where you show how some modern hacks in GHC could have been avoided with proper use of type classes. I remember you showed a way to avoid type roles. Are you planning to implement this for MicroHs?

amigalemming avatar Jul 06 '24 15:07 amigalemming

Hmmm, I can't remember what I had in mind. If you find my blog post, let me know.

As it is, there is no need for roles since there is no coercion of newtypes.

augustss avatar Jul 06 '24 16:07 augustss

On Sat, 6 Jul 2024, Lennart Augustsson wrote:

Hmmm, I can't remember what I had in mind. If you find my blog post, let me know.

I assume it was this one:

http://augustss.blogspot.com/2014/12/its-time-for-some-more-haskell-opinions.html

amigalemming avatar Jul 06 '24 16:07 amigalemming

Ah yes. I might implement something along those lines.

augustss avatar Jul 06 '24 18:07 augustss