Skip to content

Commit

Permalink
Merge pull request #59 from MercuryTechnologies/wavewave/update
Browse files Browse the repository at this point in the history
compiler_flags -> ghcopts
  • Loading branch information
mergify[bot] authored Dec 22, 2023
2 parents 4507a89 + 7f7eea0 commit 6da34c1
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")
haskell_register_ghc_nixpkgs(
attribute_path =
"haskell.compiler.ghc" + ghc_version.replace(".", ""),
compiler_flags = [
ghcopts = [
"-Werror",
"-Wall",
"-Wcompat",
Expand Down
2 changes: 1 addition & 1 deletion example/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")
haskell_register_ghc_nixpkgs(
attribute_path =
"haskell.compiler.ghc" + ghc_version.replace(".", ""),
compiler_flags = [
ghcopts = [
"-Werror",
"-Wall",
"-Wcompat",
Expand Down
4 changes: 2 additions & 2 deletions example/fix-cleanup-modules/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_library", "haskell_test")

haskell_library(
name = "fix-cleanup-modules",
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand Down Expand Up @@ -49,7 +49,7 @@ haskell_library(
# gazelle_haskell_modules:keep
haskell_library(
name = "left-alone",
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand Down
8 changes: 4 additions & 4 deletions example/package-a/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ haskell_binary(
"app/Main.hs",
"app/PackageA/Other/C.hs",
],
compiler_flags = ["-DVERSION_package_a=\"0.1.0.0\""],
ghcopts = ["-DVERSION_package_a=\"0.1.0.0\""],
version = "0.1.0.0",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -26,7 +26,7 @@ haskell_binary(
"app/AnotherMain.hs",
"app/PackageA/Other/C.hs",
],
compiler_flags = ["-DVERSION_package_a=\"0.1.0.0\""],
ghcopts = ["-DVERSION_package_a=\"0.1.0.0\""],
version = "0.1.0.0",
visibility = ["//visibility:public"],
deps = [
Expand Down Expand Up @@ -56,7 +56,7 @@ haskell_library(
srcs = [
"src-v2/PackageA/Exposed/A.hs",
],
compiler_flags = [
ghcopts = [
"-Wall",
"-Werror",
],
Expand All @@ -72,7 +72,7 @@ haskell_library(
"src/PackageA/Other/B.hs",
"src/PackageA/Other/D.lhs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_a=\"0.1.0.0\"",
"-Wall",
"-Werror",
Expand Down
4 changes: 2 additions & 2 deletions example/package-b/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ haskell_library(
"src/PackageB/Exposed/A.hs",
"src/PackageB/Other/B.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand All @@ -30,7 +30,7 @@ haskell_test(
"tests/Main.hs",
"tests/PackageB/Other/C.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-DTASTY_DISCOVER_TASTY_DISCOVER_PATH=$(location @stackage-exe//tasty-discover)",
],
Expand Down
10 changes: 5 additions & 5 deletions example/package-c/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_library", "haskell_test")
# gazelle_haskell_modules:srcs: src/
haskell_library(
name = "package-c",
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand All @@ -30,7 +30,7 @@ haskell_library(
"explicit-src/Explicit/DepOnAuto.hs",
"explicit-src/Autodetect/Root.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand All @@ -48,7 +48,7 @@ haskell_library(
# gazelle_haskell_modules:srcs: src/ multiple-folder-src/
haskell_library(
name = "package-c-multiple-srcs",
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand All @@ -72,7 +72,7 @@ haskell_library(
# gazelle_haskell_modules:srcs: add-module-src/
haskell_library(
name = "package-c-detect-new",
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand Down Expand Up @@ -104,7 +104,7 @@ haskell_test(
"tests/Main.hs",
"tests/PackageC/Other/C.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-DTASTY_DISCOVER_TASTY_DISCOVER_PATH=$(location @stackage-exe//tasty-discover)",
],
Expand Down
4 changes: 2 additions & 2 deletions example/package-d/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_library", "haskell_test")

haskell_library(
name = "package-d",
compiler_flags = [
ghcopts = [
"-XScopedTypeVariables",
"-lm",
],
Expand All @@ -28,7 +28,7 @@ haskell_test(
"tests/Main.hs",
"tests/PackageD/C.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_d=\"0.1.0.0\"",
"-DTASTY_DISCOVER_TASTY_DISCOVER_PATH=$(location @stackage-exe//tasty-discover)",
],
Expand Down
6 changes: 3 additions & 3 deletions himportscan/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ haskell_toolchain_library(name = "text")
haskell_library(
name = "himportscan-library",
srcs = glob(["src/**/*.hs"]),
compiler_flags = [
ghcopts = [
"-Wall",
"-Werror",
],
Expand All @@ -46,7 +46,7 @@ haskell_library(
haskell_binary(
name = "himportscan",
srcs = ["exe/Main.hs"],
compiler_flags = [
ghcopts = [
"-Wall",
"-Werror",
],
Expand All @@ -64,7 +64,7 @@ haskell_binary(
haskell_test(
name = "tasty",
srcs = glob(["tests/**/*.hs"]),
compiler_flags = [
ghcopts = [
"-Wall",
"-Werror",
"-DTASTY_DISCOVER_TASTY_DISCOVER_PATH=$(location @stackage-exe//tasty-discover)",
Expand Down
2 changes: 1 addition & 1 deletion tests/alternative-deps/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ load("@rules_haskell//haskell:nixpkgs.bzl", "haskell_register_ghc_nixpkgs")
haskell_register_ghc_nixpkgs(
attribute_path =
"haskell.compiler.ghc" + ghc_version.replace(".", ""),
compiler_flags = [
ghcopts = [
"-Werror",
"-Wall",
"-Wcompat",
Expand Down
6 changes: 3 additions & 3 deletions tests/alternative-deps/package-a/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ haskell_binary(
"app/Main.hs",
"app/PackageA/Other/C.hs",
],
compiler_flags = ["-DVERSION_package_a=\"0.1.0.0\""],
ghcopts = ["-DVERSION_package_a=\"0.1.0.0\""],
version = "0.1.0.0",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -25,7 +25,7 @@ haskell_binary(
"app/Main.hs",
"app/PackageA/Other/C.hs",
],
compiler_flags = ["-DVERSION_package_a=\"0.1.0.0\""],
ghcopts = ["-DVERSION_package_a=\"0.1.0.0\""],
version = "0.1.0.0",
visibility = ["//visibility:public"],
deps = [
Expand All @@ -41,7 +41,7 @@ haskell_library(
"src/PackageA/Other/B.hs",
"src/PackageA/Other/D.lhs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_a=\"0.1.0.0\"",
"-Wall",
"-Werror",
Expand Down
4 changes: 2 additions & 2 deletions tests/alternative-deps/package-b/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ haskell_library(
"src/PackageB/Exposed/A.hs",
"src/PackageB/Other/B.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-XScopedTypeVariables",
"-lm",
Expand All @@ -29,7 +29,7 @@ haskell_test(
"tests/Main.hs",
"tests/PackageB/Other/C.hs",
],
compiler_flags = [
ghcopts = [
"-DVERSION_package_b=\"0.1.0.0\"",
"-DTASTY_DISCOVER_TASTY_DISCOVER_PATH=$(location @stackage-exe//tasty-discover)",
],
Expand Down

0 comments on commit 6da34c1

Please sign in to comment.