Skip to content

Add keywords field to package metadata#183

Merged
dahlia merged 3 commits into
nirum-lang:masterfrom
earlbread:add_keywords_metadata
Oct 18, 2017
Merged

Add keywords field to package metadata#183
dahlia merged 3 commits into
nirum-lang:masterfrom
earlbread:add_keywords_metadata

Conversation

@earlbread
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@earlbread
Copy link
Copy Markdown
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
Copy Markdown
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