Skip to content
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 keywords field to package metadata #183

Merged
merged 3 commits into from
Oct 18, 2017

Conversation

earlbread
Copy link
Contributor

This patch adds the keywords field to package metadata. (#100)

I named keywords metadata to packageKeywords because of a conflict with Python keywords in Nirum/Targets/Python.hs.

Copy link
Member

@dahlia dahlia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An array of strings (e.g. ["sample", "example", "nirum"]) would be better than a string for keywords.

I named keywords metadata to packageKeywords because of a conflict with Python keywords in Nirum/Targets/Python.hs.

We can resolve a conflict of names without choose a different name. Qualified import is enough:

import qualified Nirum.Package.Metadata as MD

pKeywords :: Code
pKeywords = fromMaybeToMeta $ MD.keywords metadata'

@earlbread
Copy link
Contributor Author

@dahlia Thanks for the advice. I'll fix it soon!

@earlbread
Copy link
Contributor Author

@dahlia I changed keywords metadata to an array. Thank you!

@dahlia dahlia merged commit 68542b7 into nirum-lang:master Oct 18, 2017
@dahlia
Copy link
Member

dahlia commented Oct 18, 2017

Thanks!

@earlbread earlbread deleted the add_keywords_metadata branch October 22, 2017 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants