Skip to content

Commit

Permalink
chore: Add more descriptive/precise tags to bazel build rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Jan 20, 2025
1 parent 20a1ee0 commit 4168de6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 12 deletions.
35 changes: 28 additions & 7 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ haskell_library(
"src/Language/Cimple/Tokens.hs",
],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -37,7 +40,10 @@ haskell_library(
name = "ast",
srcs = ["src/Language/Cimple/Ast.hs"],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -57,7 +63,10 @@ haskell_library(
"src/Language/Cimple/Flatten.hs",
],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -84,7 +93,10 @@ haskell_library(
extra_srcs = ["src/Language/Cimple/Parser.preproc.y"],
ghcopts = ["-DSOURCE=\"$(location src/Language/Cimple/Parser.preproc.y)\""],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand Down Expand Up @@ -115,7 +127,10 @@ haskell_library(
name = "comment-parser",
srcs = [":CommentParser"],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand All @@ -142,7 +157,10 @@ haskell_library(
name = "tree-parser",
srcs = [":TreeParser"],
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = [
"//hs-cimple:__subpackages__",
"//tools/haskell:__pkg__",
Expand Down Expand Up @@ -172,7 +190,10 @@ haskell_library(
],
),
src_strip_prefix = "src",
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
version = "0.0.23",
visibility = ["//visibility:public"],
deps = [
Expand Down
25 changes: 20 additions & 5 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ load("@rules_haskell//haskell:defs.bzl", "haskell_binary")
haskell_binary(
name = "cimplefmt",
srcs = ["cimplefmt.hs"],
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -16,7 +19,10 @@ haskell_binary(
haskell_binary(
name = "dump-ast",
srcs = ["dump-ast.hs"],
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -28,7 +34,10 @@ haskell_binary(
haskell_binary(
name = "count-tokens",
srcs = ["count-tokens.hs"],
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -42,7 +51,10 @@ haskell_binary(
haskell_binary(
name = "dump-tokens",
srcs = ["dump-tokens.hs"],
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand All @@ -55,7 +67,10 @@ haskell_binary(
haskell_binary(
name = "include-graph",
srcs = ["include-graph.hs"],
tags = ["no-cross"],
tags = [
"haskell",
"no-cross",
],
visibility = ["//visibility:public"],
deps = [
"//hs-cimple",
Expand Down

0 comments on commit 4168de6

Please sign in to comment.