File tree 3 files changed +27
-0
lines changed
3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package(default_testonly = 1)
2
2
3
3
load (
4
4
"@io_tweag_rules_haskell//haskell:haskell.bzl" ,
5
+ "haskell_binary" ,
5
6
"haskell_library" ,
6
7
)
7
8
@@ -11,8 +12,30 @@ haskell_library(
11
12
"Foo.hs" ,
12
13
"FooTH.hs" ,
13
14
],
15
+ # Test that the linker can also see the extra_srcs.
16
+ compiler_flags = ["-optl-Wl,@tests/extra-source-files/ld-options.txt" ],
14
17
extra_srcs = [
15
18
"file.txt" ,
19
+ "ld-options.txt" ,
20
+ ],
21
+ prebuilt_dependencies = [
22
+ "base" ,
23
+ "template-haskell" ,
24
+ ],
25
+ )
26
+
27
+ haskell_binary (
28
+ name = "extra-source-files-bin" ,
29
+ srcs = [
30
+ "FooTH.hs" ,
31
+ "Foo.hs" ,
32
+ "Main.hs" ,
33
+ ],
34
+ # Test that the linker can also see the extra_srcs.
35
+ compiler_flags = ["-optl-Wl,@tests/extra-source-files/ld-options.txt" ],
36
+ extra_srcs = [
37
+ "file.txt" ,
38
+ "ld-options.txt" ,
16
39
],
17
40
prebuilt_dependencies = [
18
41
"base" ,
Original file line number Diff line number Diff line change
1
+ import Foo (foo )
2
+
3
+ main :: IO ()
4
+ main = putStrLn foo
You can’t perform that action at this time.
0 commit comments