Skip to content

Commit 0dd61cd

Browse files
committed
Disable provider-params warnings
1 parent 72b9d0a commit 0dd61cd

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

haskell/private/context.bzl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ load("@bazel_skylib//lib:paths.bzl", "paths")
44
load("//haskell:providers.bzl", "all_dependencies_package_ids")
55
load(":private/path_utils.bzl", "join_path_list")
66

7-
HaskellContext = provider() # buildifier: disable=name-conventions
7+
# buildifier: disable=name-conventions
8+
# buildifier: disable=provider-params
9+
HaskellContext = provider()
810

911
def append_to_path(env, is_windows, path_list):
1012
if path_list:

haskell/private/haskell_impl.bzl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,13 @@ def haskell_library_impl(ctx):
752752
#
753753
# TODO Get rid of this by computing a CcInfo in haskell_import
754754
# instead. Currently blocked on upstream.
755-
HaskellImportHack = provider() # buildifier: disable=name-conventions
756-
HaskellToolchainLibraries = provider() # buildifier: disable=name-conventions
755+
# buildifier: disable=name-conventions
756+
# buildifier: disable=provider-params
757+
HaskellImportHack = provider()
758+
759+
# buildifier: disable=name-conventions
760+
# buildifier: disable=provider-params
761+
HaskellToolchainLibraries = provider()
757762

758763
def haskell_toolchain_library_impl(ctx):
759764
hs = haskell_context(ctx)

haskell/providers.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def all_dependencies_package_ids(deps):
4545
package_ids.extend(all_package_ids(dep[HaskellLibraryInfo]))
4646
return package_ids
4747

48+
# TODO add fields
49+
# buildifier: disable=provider-params
4850
HaskellToolchainLibraryInfo = provider(
4951
doc = "Library that was imported via haskell_toolchain_library.",
5052
)

0 commit comments

Comments
 (0)