-
Notifications
You must be signed in to change notification settings - Fork 0
Comments for 2019-03-16 #11
Comments
GHC bug about quantified contexts + commutativity of coercible: https://gitlab.haskell.org/ghc/ghc/issues/16432 Ryan GI Scott's blog about how quantified contexts can make it possible to have 10 months ago I put up my idea for making coercible know that the same instances are used for different newtypes - https://www.reddit.com/r/haskell/comments/8h2lon/could_coercible_be_extended_to_work_on/ . An interesting point that Richerd Eisenberg made in the comments is that |
Also, I made a claim that
Doesn't typecheck. I was wrong! Transitivity actually does work for type equality. Curiously, this doesn't work directly for Coercible:
Results in
But this can be resolved by doing
The ambiguity is resolved by the caller specifying the intermediate type to coerce through. It's curious that this ambiguity is an issue for Coercible but not for type equality. Once place where things get squirrely for transitivity of
Yields error:
|
No description provided.
The text was updated successfully, but these errors were encountered: