diff --git a/haskell/haskell_genrule.bzl b/haskell/haskell_genrule.bzl deleted file mode 100644 index 662ed92a2..000000000 --- a/haskell/haskell_genrule.bzl +++ /dev/null @@ -1,16 +0,0 @@ -load("@prelude//:genrule.bzl", "process_genrule") -load("@prelude//haskell:toolchain.bzl", "HaskellToolchainInfo") - -def haskell_genrule_impl(ctx: AnalysisContext) -> list[Provider]: - - providers = process_genrule(ctx, ctx.attrs.out, ctx.attrs.outs) - - haskell_toolchain = ctx.attrs._haskell_toolchain[HaskellToolchainInfo] - - unkeyed_variables = { - "hc": haskell_toolchain.compiler, - } - providers.append(TemplatePlaceholderInfo(unkeyed_variables = unkeyed_variables)) - - - return providers diff --git a/rules_impl.bzl b/rules_impl.bzl index 81f168fb1..4363060a8 100644 --- a/rules_impl.bzl +++ b/rules_impl.bzl @@ -30,11 +30,11 @@ load("@prelude//go:go_stdlib.bzl", "go_stdlib_impl") load("@prelude//go:go_test.bzl", "go_test_impl") load("@prelude//go/transitions:defs.bzl", "asan_attr", "cgo_enabled_attr", "coverage_mode_attr", "go_binary_transition", "go_exported_library_transition", "go_test_transition", "race_attr", "tags_attr") load("@prelude//haskell:haskell.bzl", "haskell_binary_impl", "haskell_library_impl", "haskell_prebuilt_library_impl", "haskell_toolchain_library_impl") -load("@prelude//haskell:haskell_genrule.bzl", "haskell_genrule_impl") load("@prelude//haskell:haskell_ghci.bzl", "haskell_ghci_impl") load("@prelude//haskell:haskell_haddock.bzl", "haskell_haddock_impl") load("@prelude//haskell:haskell_ide.bzl", "haskell_ide_impl") load("@prelude//haskell:library_info.bzl", "HaskellLibraryProvider") +load("@prelude//haskell:toolchain.bzl", "HaskellToolchainInfo") load("@prelude//http_archive:http_archive.bzl", "http_archive_impl") load("@prelude//java:java.bzl", _java_extra_attributes = "extra_attributes", _java_implemented_rules = "implemented_rules") load("@prelude//js:js.bzl", _js_extra_attributes = "extra_attributes", _js_implemented_rules = "implemented_rules") @@ -190,7 +190,7 @@ extra_implemented_rules = struct( haskell_ide = haskell_ide_impl, haskell_prebuilt_library = haskell_prebuilt_library_impl, haskell_toolchain_library = haskell_toolchain_library_impl, - haskell_genrule = haskell_genrule_impl, + haskell_genrule = genrule_impl, #lua cxx_lua_extension = cxx_lua_extension_impl,