-
Notifications
You must be signed in to change notification settings - Fork 27
Add license field to package metadata #180
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
Conversation
dahlia
left 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.
@earlbread Generally looks good for me. Could you adjust just one style thing? 😋
src/Nirum/Package/Metadata.hs
Outdated
|
|
||
| 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 } } = tThere 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. |
dahlia
left 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.
@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)