GHC label conventions

Ben Gamari ben at well-typed.com
Mon Apr 1 20:34:45 UTC 2019


Simon Peyton Jones via ghc-devs <ghc-devs at haskell.org> writes:

> Are you sure you got all the labels. Eg I don't see "type error messages
> https://gitlab.haskell.org/ghc/ghc/issues?label_name%5B%5D=type+error+messages
>
> Maybe that's because there is only one such ticket, #16439.
>
> Can we have a list of all such orphaned labels, so we can get rid of them?  Eg by relabelling
>
The set of orphan keywords is attached (orphan-keywords.json).

For reference, the orphan set was computed from the set of all keywords
(all-keywords.csv, from Trac report #25) and the keyword mapping used by
the import script (keyword-label-mapping.json, mapping Trac keywords to
a set of GitLab labels) as follows in Python:

    import csv
    import json

    all_keywords = set(e[0].lower() for e in csv.reader(open('all-keywords.csv')))
    mapping = json.load(open('./keyword-label-mappping.json'))
    mapped_keywords = set(map(str.lower, mapping.keys()))
    orphans = set(all_keywords).difference(mapped_keywords)
    json.dump(list(orphans), open('orphan-keywords.json','w'))

Cheers,

- Ben


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 487 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190401/fdee3e96/attachment-0001.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: all-keywords.csv
Type: application/octet-stream
Size: 23572 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190401/fdee3e96/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: orphan-keywords.json
Type: application/octet-stream
Size: 3469 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190401/fdee3e96/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keyword-label-mappping.json
Type: application/octet-stream
Size: 7738 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20190401/fdee3e96/attachment-0005.obj>


More information about the ghc-devs mailing list