diff --git a/haskell/c2hs.bzl b/haskell/c2hs.bzl index a653c1cbc7..dfba316577 100644 --- a/haskell/c2hs.bzl +++ b/haskell/c2hs.bzl @@ -8,7 +8,7 @@ load( "target_unique_name", ) load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "C2hsLibraryInfo", ) load("@bazel_skylib//:lib.bzl", "paths") diff --git a/haskell/cc.bzl b/haskell/cc.bzl index 15c9be5f84..b61dea5e06 100644 --- a/haskell/cc.bzl +++ b/haskell/cc.bzl @@ -4,7 +4,7 @@ These rules are temporary and will be deprecated in the future. """ load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "CcSkylarkApiProviderHacked", "HaskellBinaryInfo", "HaskellBuildInfo", diff --git a/haskell/doctest.bzl b/haskell/doctest.bzl index 7bc9bc87cb..6a049f997f 100644 --- a/haskell/doctest.bzl +++ b/haskell/doctest.bzl @@ -1,7 +1,7 @@ """Doctest support""" load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaskellBinaryInfo", "HaskellBuildInfo", "HaskellLibraryInfo", diff --git a/haskell/haddock.bzl b/haskell/haddock.bzl index 360cbef584..b7cf641919 100644 --- a/haskell/haddock.bzl +++ b/haskell/haddock.bzl @@ -4,7 +4,7 @@ load(":private/context.bzl", "haskell_context") load(":private/path_utils.bzl", "module_name") load(":private/set.bzl", "set") load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaddockInfo", "HaskellBuildInfo", "HaskellLibraryInfo", diff --git a/haskell/haskell.bzl b/haskell/haskell.bzl index 16aa099f56..9e8aad60d4 100644 --- a/haskell/haskell.bzl +++ b/haskell/haskell.bzl @@ -1,6 +1,11 @@ """Core Haskell rules""" -load(":private/providers.bzl", "HaskellPrebuiltPackageInfo") +load("@io_tweag_rules_haskell//haskell:private/providers.bzl", + "HaskellPrebuiltPackageInfo", + "HaskellBuildInfo", + "HaskellLibraryInfo", + "HaskellBinaryInfo", +) load(":private/set.bzl", "set") load("@bazel_skylib//:lib.bzl", "paths") load( @@ -137,6 +142,10 @@ def _mk_binary_rule(**kwargs): "@io_tweag_rules_haskell//haskell:toolchain", "@bazel_tools//tools/cpp:toolchain_type", ], + provides = [ + HaskellBuildInfo, + HaskellBinaryInfo, + ], **kwargs ) @@ -202,6 +211,10 @@ haskell_library = rule( "@io_tweag_rules_haskell//haskell:toolchain", "@bazel_tools//tools/cpp:toolchain_type", ], + provides = [ + HaskellBuildInfo, + HaskellLibraryInfo, + ], ) """Build a library from Haskell source. diff --git a/haskell/import.bzl b/haskell/import.bzl index 154f85ceb7..f77eda30f6 100644 --- a/haskell/import.bzl +++ b/haskell/import.bzl @@ -3,7 +3,7 @@ load(":private/context.bzl", "haskell_context") load(":private/actions/package.bzl", "package") load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaddockInfo", "HaskellBuildInfo", "HaskellLibraryInfo", diff --git a/haskell/lint.bzl b/haskell/lint.bzl index 90ef849df7..78b7a13aa6 100644 --- a/haskell/lint.bzl +++ b/haskell/lint.bzl @@ -7,7 +7,7 @@ load( "target_unique_name", ) load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaskellBinaryInfo", "HaskellBuildInfo", "HaskellLibraryInfo", diff --git a/haskell/private/actions/compile.bzl b/haskell/private/actions/compile.bzl index 59a80d9568..2c186748f5 100644 --- a/haskell/private/actions/compile.bzl +++ b/haskell/private/actions/compile.bzl @@ -9,7 +9,7 @@ load( ) load(":private/pkg_id.bzl", "pkg_id") load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "C2hsLibraryInfo", "DefaultCompileInfo", ) diff --git a/haskell/private/actions/repl.bzl b/haskell/private/actions/repl.bzl index 24faacb182..55ab3da007 100644 --- a/haskell/private/actions/repl.bzl +++ b/haskell/private/actions/repl.bzl @@ -6,7 +6,7 @@ load( "shell", ) load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaskellBinaryInfo", "HaskellBuildInfo", "HaskellLibraryInfo", diff --git a/haskell/private/dependencies.bzl b/haskell/private/dependencies.bzl index 92dc4981e9..3be77c42ef 100644 --- a/haskell/private/dependencies.bzl +++ b/haskell/private/dependencies.bzl @@ -1,6 +1,6 @@ load(":private/path_utils.bzl", "ln") load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "CcSkylarkApiProviderHacked", "HaskellBinaryInfo", "HaskellBuildInfo", diff --git a/haskell/private/haskell_impl.bzl b/haskell/private/haskell_impl.bzl index c5073229d9..5ecc639f83 100644 --- a/haskell/private/haskell_impl.bzl +++ b/haskell/private/haskell_impl.bzl @@ -21,7 +21,7 @@ load( "ln", ) load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "C2hsLibraryInfo", "HaskellBinaryInfo", "HaskellBuildInfo", diff --git a/haskell/protobuf.bzl b/haskell/protobuf.bzl index 0fdf5c6764..2f6f1d1d43 100644 --- a/haskell/protobuf.bzl +++ b/haskell/protobuf.bzl @@ -1,7 +1,7 @@ """Support for protocol buffers""" load( - ":private/providers.bzl", + "@io_tweag_rules_haskell//haskell:private/providers.bzl", "HaskellBuildInfo", "HaskellLibraryInfo", "HaskellProtobufInfo",