Closed treeowl closed 6 years ago
Currently, it says
type role Refined phantom representational
This means that I can use coerce to prove Q x given any P x whatsoever! I think you probably should write
coerce
Q x
P x
type role Refined nominal nominal
Why should the second parameter be nominal? Consider the interaction between GreaterThan and Data.Ord.Down.
GreaterThan
Data.Ord.Down
This makes sense. Yeah, I didn't consider interactions with Down at all. Thanks for pointing this out.
Down
Currently, it says
This means that I can use
coerce
to proveQ x
given anyP x
whatsoever! I think you probably should writeWhy should the second parameter be nominal? Consider the interaction between
GreaterThan
andData.Ord.Down
.