Skip to content

Commit bfe8a58

Browse files
committed
Fix confusing-name warnings
1 parent 2b95128 commit bfe8a58

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

haskell/asterius/defs.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ browser_transition = rule(
334334
doc = "Wrapper rule used to execute webpack and its ahc_dist dependency in a configuration where asterius targets the browser",
335335
)
336336

337-
def _name_of_label(l):
338-
return l.split(":")[-1]
337+
def _name_of_label(label):
338+
return label.split(":")[-1]
339339

340340
def asterius_webpack(name, ahc_dist_dep, entry_point, tags = [], srcs = [], **kwargs):
341341
"""

haskell/private/actions/link.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def darwin_flags_for_linking_indirect_cc_deps(hs, cc, posix, basename, dynamic):
101101
nm = cc.tools.nm,
102102
head = posix.commands["head"],
103103
sed = posix.commands["sed"],
104-
solibs = " ".join(["\"" + l.path + "\"" for l in cc_dynamic_libs]),
104+
solibs = " ".join(["\"" + lib.path + "\"" for lib in cc_dynamic_libs]),
105105
out = linker_flags_file.path,
106106
),
107107
)

haskell/repl.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def _create_HaskellMultiReplInfo(from_source, from_binary, collect_info):
469469
)
470470

471471
def _concat(lists):
472-
return [item for l in lists for item in l]
472+
return [item for sublist in lists for item in sublist]
473473

474474
def _compiler_flags_and_inputs(hs, cc, repl_info, get_dirname, static = False, include_package_ids = True):
475475
"""Collect compiler flags and inputs.

0 commit comments

Comments
 (0)