27 lines
		
	
	
	
		
			522 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			522 B
		
	
	
	
		
			Text
		
	
	
	
	
	
load(
 | 
						|
    "@io_tweag_rules_haskell//haskell:haskell.bzl",
 | 
						|
    "haskell_library",
 | 
						|
    "haskell_test",
 | 
						|
)
 | 
						|
 | 
						|
package(default_testonly = 1)
 | 
						|
 | 
						|
haskell_library(
 | 
						|
    name = "lib",
 | 
						|
    srcs = glob(["src/*.hs"]),
 | 
						|
    src_strip_prefix = "src",
 | 
						|
    deps = [
 | 
						|
        "//tests/hackage:template-haskell",
 | 
						|
    ],
 | 
						|
)
 | 
						|
 | 
						|
haskell_test(
 | 
						|
    name = "binary-with-lib",
 | 
						|
    srcs = ["Main.hs"],
 | 
						|
    visibility = ["//visibility:public"],
 | 
						|
    deps = [
 | 
						|
        ":lib",
 | 
						|
        "//tests/hackage:base",
 | 
						|
        "//tests/hackage:template-haskell",
 | 
						|
    ],
 | 
						|
)
 |