Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Set all target’s visibility in this package to "public". | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
# Load rules_haskell rules. | ||
load( | ||
"@rules_haskell//haskell:defs.bzl", | ||
"haskell_toolchain_library", | ||
"haskell_library", | ||
"haskell_binary", | ||
) | ||
|
||
load("@rules_haskell//haskell:cabal.bzl", "haskell_cabal_binary", "haskell_cabal_library") | ||
|
||
# haskell_toolchain_library can access builtin GHC packages | ||
# and assign them a bazel target name, so that they | ||
# can be referenced as dependencies. | ||
haskell_toolchain_library(name = "base") | ||
|
||
# You can add your own libraries with haskell_library. | ||
haskell_library( | ||
name = "lib", | ||
src_strip_prefix = "src", | ||
srcs = glob(['src/**/*.hs']), | ||
compiler_flags = ["-XOverloadedStrings"], | ||
deps = [ | ||
":base", | ||
"//semantic-analysis:lib", | ||
"//semantic-source:lib", | ||
"@stackage//:aeson", | ||
"@stackage//:algebraic-graphs", | ||
"@stackage//:containers", | ||
"@stackage//:fused-effects", | ||
"@stackage//:generic-monoid", | ||
"@stackage//:generic-lens", | ||
"@stackage//:hashable", | ||
"@stackage//:lens", | ||
"@stackage//:pathtype", | ||
"@stackage//:semilattices", | ||
"@stackage//:text", | ||
] | ||
|
||
) |