Shorten data-default-instances-dlist target name (#908)

This PR copies the hack that I used for the other
data-default-instances-* packages to data-default-instances-dlist. The
exact conditions under which this seems to be required probably depend
on things like your username and the directory of your project which
is why this failed for Neil but not for me.
This commit is contained in:
Moritz Kiefer 2019-05-04 13:06:23 +02:00 committed by mergify[bot]
parent e36e1074e0
commit 89d2a3c080
3 changed files with 26 additions and 5 deletions

View File

@ -8,23 +8,19 @@ load("@ai_formation_hazel//:hazel.bzl", "hazel_library")
haskell_library(
name = "data-default",
visibility = ["//visibility:public"],
generator_name = "data-default",
generator_function = "cabal_haskell_package",
generator_location = "/home/moritz/.cache/bazel/_bazel_moritz/bb4e4404f889dc1b816f246b08c0d9ea/external/haskell_data__default/BUILD:15",
srcs = ["@haskell_data__default//:Data/Default.hs"],
extra_srcs = [],
deps = [
hazel_library("base"),
hazel_library("data-default-class"),
"@haskell_data__default__instances__containers//:lib",
hazel_library("data-default-instances-dlist"),
"@haskell_data__default__instances__dlist//:lib",
"@haskell_data__default__instances__old__locale//:lib"
],
compiler_flags = ["-XHaskell98", "-w", "-Wwarn"],
version = "0.7.1.1",
)
# /home/moritz/.cache/bazel/_bazel_moritz/bb4e4404f889dc1b816f246b08c0d9ea/external/haskell_data__default/BUILD:15:1
cc_library(
name = "data-default-cbits",
visibility = ["//visibility:public"],

View File

@ -0,0 +1,15 @@
package(default_visibility = ["//visibility:public"])
load("@io_tweag_rules_haskell//haskell:haskell.bzl",
"haskell_library",
)
load("@ai_formation_hazel//:hazel.bzl", "hazel_library")
haskell_library(
name = "lib",
visibility = ["//visibility:public"],
srcs = [":Data/Default/Instances/DList.hs"],
deps = [hazel_library("base"), hazel_library("data-default-class"), hazel_library("dlist")],
version = "0.0.1",
)

View File

@ -485,6 +485,9 @@ hazel_custom_package_hackage(
version = "0.7.2",
)
# We patch various data-default packages to give them shorter filenames
# to fix Windows builds.
hazel_custom_package_hackage(
package_name = "data-default",
build_file = "//3rdparty/haskell:BUILD.data-default",
@ -506,6 +509,13 @@ hazel_custom_package_hackage(
version = "0.0.1",
)
hazel_custom_package_hackage(
package_name = "data-default-instances-dlist",
build_file = "//3rdparty/haskell:BUILD.data-default-instances-dlist",
sha256 = "7d683711cbf08abd7adcd5ac2be825381308d220397315a5570fe61b719b5959",
version = "0.0.1",
)
hazel_custom_package_hackage(
package_name = "zlib",
build_file = "//3rdparty/haskell:BUILD.zlib",