TIL: seems to use alphabetical ordering to solve the diamond type class problem: try.purescript.org/?gist=88132cca
Conversation
that code should be rejected :(
1
Indeed - I’d assumed would reject diamond hierarchies, but then I saw pursuit.purescript.org/packages/pures - piqued my curiosity!
1
what's the problem with a diamond? The problem I see is overlapping instances.
2
I was trying to test how it would resolve a canonical path through the hierarchy in the presence of named instances.
2
also named instances are just for compilation output, shouldn't be able to influence compilation, at all. Bug.
1
1
Ah, right! That was my source of confusion - I thought they were to facilitate implementing overlapping instances.
yes, requiring names often makes people think it's got a language semantic. Can be confusing, sorry!
1

