Skip to content

Commit

Permalink
More links to string_keyed_label_list_dict
Browse files Browse the repository at this point in the history
  • Loading branch information
aherrmann committed Sep 17, 2019
1 parent 70b5e9b commit fe8e2b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions haskell/cabal.bzl
Expand Up @@ -721,6 +721,9 @@ def _invert(d):

def _from_string_keyed_label_list_dict(d):
"""Convert string_keyed_label_list_dict to label_keyed_string_dict."""

# TODO Remove _from_string_keyed_label_list_dict once following issue
# is resolved: https://github.com/bazelbuild/bazel/issues/7989.
out = {}
for (string_key, label_list) in d.items():
for label in label_list:
Expand All @@ -732,6 +735,9 @@ def _from_string_keyed_label_list_dict(d):

def _to_string_keyed_label_list_dict(d):
"""Convert label_keyed_string_dict to string_keyed_label_list_dict."""

# TODO Remove _to_string_keyed_label_list_dict once following issue
# is resolved: https://github.com/bazelbuild/bazel/issues/7989.
out = {}
for (label, string_key_list) in d.items():
for string_key in string_key_list.split(" "):
Expand Down

0 comments on commit fe8e2b1

Please sign in to comment.