-
Notifications
You must be signed in to change notification settings - Fork 206
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the Diagnostics
instances LGTM 👍
Diagnostics d1 <> Diagnostics d2 = Diagnostics (d1 <> d2) | ||
|
||
instance Monoid Diagnostics where | ||
mempty = Diagnostics mempty |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can these be derived?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default monoid instance for Map is probably not what we want. This should be Map.unionWith Set.union. the default semi group operation is leftbiased union.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In any case I think ToJSON
should be derivable. Although it looks like NormalizedUri
has no instance for ToJSON/FromJSON
. This should probably be added in haskell-lsp.
I'll merge now, please let me know if you wanted me to take any extra actions and I'll open another pull request. |
No description provided.