Skip to content

Commit 7c01156

Browse files
committed
Use ghcopts instead of compiler_flags
1 parent 9fc3e30 commit 7c01156

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎docs/haskell.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ a single ``BUILD.bazel`` as follows::
239239
haskell_binary(
240240
name = "demorgan",
241241
srcs = ["Main.hs"],
242-
compiler_flags = ["-threaded"],
242+
ghcopts = ["-threaded"],
243243
deps = [":base", ":booleans"],
244244
)
245245

@@ -317,7 +317,7 @@ And at the ``main/BUILD.bazel`` file::
317317
haskell_binary(
318318
name = "demorgan",
319319
srcs = ["Main.hs"],
320-
compiler_flags = ["-threaded"],
320+
ghcopts = ["-threaded"],
321321
deps = [":base", "//lib:booleans"],
322322
)
323323

‎rules_haskell_tests/tests/repl-flags/BUILD.bazel‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ haskell_test(
1313
name = "compiler_flags",
1414
srcs = ["CompilerFlags.hs"],
1515

16-
# This also ensure that local `compiler_flags` does not override the `global ones`
17-
compiler_flags = ["-XOverloadedStrings"],
16+
# This also ensure that local `ghcopts` does not override the `global ones`
17+
ghcopts = ["-XOverloadedStrings"],
1818
visibility = ["//visibility:public"],
1919
deps = [
2020
"//tests/hackage:base",

‎rules_haskell_tests/tests/repl-make-variables/BUILD.bazel‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ package(default_testonly = 1)
44

55
# Regression tests for https://github.com/tweag/rules_haskell/issues/1377
66

7-
# Test that make variable expension is performed on `compiler_flags` forwarded
7+
# Test that make variable expension is performed on `ghcopts` forwarded
88
# to the REPL.
99
haskell_test(
1010
name = "test-compiler-flags",
1111
srcs = ["Main.hs"],
12-
compiler_flags = ['-DDATA="$(rootpath data.txt)"'],
1312
data = ["data.txt"],
13+
ghcopts = ['-DDATA="$(rootpath data.txt)"'],
1414
visibility = ["//tests/asterius/repl-make-variables:__pkg__"],
1515
deps = [
1616
"//tests/hackage:base",

‎rules_haskell_tests/tests/sandwich/BUILD.bazel‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ cc_library(
1515
haskell_library(
1616
name = "testlib",
1717
srcs = ["Lib.hs"],
18-
compiler_flags = [
18+
ghcopts = [
1919
"-Wall",
2020
"-Werror",
2121
],
@@ -28,7 +28,7 @@ haskell_library(
2828
haskell_test(
2929
name = "test",
3030
srcs = ["Main.hs"],
31-
compiler_flags = [
31+
ghcopts = [
3232
"-Wall",
3333
"-Werror",
3434
],

0 commit comments

Comments
 (0)