package(default_visibility = ["//:__subpackages__"]) load( "@rules_haskell//haskell:defs.bzl", "haskell_toolchain", ) load( "@rules_haskell//haskell:c2hs.bzl", "c2hs_toolchain", ) load("//bazel_tools:haskell.bzl", "da_haskell_library", "da_haskell_repl") load("@os_info//:os_info.bzl", "is_windows") load("@build_environment//:configuration.bzl", "ghc_version", "mvn_version", "sdk_version") exports_files([".hlint.yaml"]) config_setting( name = "on_linux", constraint_values = [ "@bazel_tools//platforms:linux", ], ) config_setting( name = "on_osx", constraint_values = [ "@bazel_tools//platforms:osx", ], ) config_setting( name = "on_freebsd", constraint_values = [ "@bazel_tools//platforms:freebsd", ], ) config_setting( name = "on_windows", constraint_values = [ "@bazel_tools//platforms:windows", ], ) config_setting( name = "profiling_build", values = { "compilation_mode": "dbg", }, ) load( "@rules_haskell//haskell:c2hs.bzl", "c2hs_toolchain", ) c2hs_toolchain( name = "c2hs-toolchain", c2hs = "@stackage-exe//c2hs", ) filegroup( name = "node_modules", srcs = glob(["node_modules/**/*"]), ) config_setting( name = "ghci_data", define_values = { "ghci_data": "True", }, ) config_setting( name = "hie_bios_ghci", define_values = { "hie_bios_ghci": "True", }, ) # # Metadata # # The VERSION file is inlined in a few builds. exports_files([ "NOTICES", "LICENSE", "CHANGELOG", "tsconfig.json", ]) genrule( name = "mvn_version_file", outs = ["MVN_VERSION"], cmd = "echo -n {mvn} > $@".format(mvn = mvn_version), ) genrule( name = "sdk-version-hs", srcs = [], outs = ["SdkVersion.hs"], cmd = """ cat > $@ <