-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add license field to package metadata #180
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.
@earlbread Generally looks good for me. Could you adjust just one style thing? 😋
src/Nirum/Package/Metadata.hs
Outdated
@@ -96,11 +97,12 @@ deriving instance (Ord t, Target t) => Ord (Package t) | |||
deriving instance (Show t, Target t) => Show (Package t) | |||
|
|||
packageTarget :: Target t => Package t -> t | |||
packageTarget Package { metadata = Metadata _ _ _ t } = t | |||
packageTarget Package { metadata = Metadata _ _ _ _ t } = t |
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.
As Metadata
gets having many fields, we'd better use record syntax:
packageTarget Package { metadata = Metadata { target = t } } = t
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.
I agree with you, I'll fix it soon. Thank you!
Although builds were failed, it's not caused by this patch. These failures have occasionally happened, so never mind. |
I updated the code using record syntax. |
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.
@earlbread Everything seems perfect. 👍 Only remaining thing to do is just waiting for builds. 😄
@earlbread Thanks for your contribution. 😄 Just merged! |
@dahlia Thank you! |
This patch adds the license field to package metadata. (#100)