-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Show instance #2802
Fix Show instance #2802
Conversation
deriving newtype (Eq, Show, Typeable, Hashable, NFData) | ||
deriving newtype (Eq, Typeable, Hashable, NFData) | ||
|
||
instance Show GhcSessionDeps where |
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.
What's wrong with the derived one? Worth a comment.
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.
It prints True or False instead of the key name
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 problem is that the deriving strategy is new type instead of stock
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.
So why not use the stock deriving?
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.
Oh the stock instance is very verbose and bloats traces. I have changed the custom instance to not ignore the boolean for good measure.
8f7a97e
to
a587e9a
Compare
a587e9a
to
1621dee
Compare
No description provided.