Skip to content

Commit

Permalink
chore: Update to new third_party method for haskell deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Oct 14, 2023
1 parent d809322 commit 2646259
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
27 changes: 13 additions & 14 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@ai_formation_hazel//tools:mangling.bzl", "hazel_library")
load("@rules_haskell//haskell:defs.bzl", "haskell_library")
load("//third_party/haskell/hspec-discover:build_defs.bzl", "hspec_test")
load("//tools/project:build_defs.bzl", "project")
Expand All @@ -14,11 +13,11 @@ haskell_library(
deps = [
"//c-toxcore",
"//hs-msgpack-binary",
hazel_library("QuickCheck"),
hazel_library("base"),
hazel_library("bytestring"),
hazel_library("generic-arbitrary"),
hazel_library("quickcheck-instances"),
"//third_party/haskell:QuickCheck",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:generic-arbitrary",
"//third_party/haskell:quickcheck-instances",
],
)

Expand All @@ -28,13 +27,13 @@ hspec_test(
deps = [
":hs-toxcore-c",
"//hs-msgpack-binary",
hazel_library("QuickCheck"),
hazel_library("base"),
hazel_library("base16-bytestring"),
hazel_library("bytestring"),
hazel_library("cryptohash"),
hazel_library("hspec"),
hazel_library("saltine"),
hazel_library("vector"),
"//third_party/haskell:QuickCheck",
"//third_party/haskell:base",
"//third_party/haskell:base16-bytestring",
"//third_party/haskell:bytestring",
"//third_party/haskell:cryptohash",
"//third_party/haskell:hspec",
"//third_party/haskell:saltine",
"//third_party/haskell:vector",
],
)
19 changes: 9 additions & 10 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@ai_formation_hazel//tools:mangling.bzl", "hazel_library")
load("@rules_haskell//haskell:defs.bzl", "haskell_binary")

haskell_binary(
Expand All @@ -7,10 +6,10 @@ haskell_binary(
deps = [
"//hs-schema",
"//hs-toxcore-c",
hazel_library("base"),
hazel_library("bytestring"),
hazel_library("data-fix"),
hazel_library("groom"),
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:data-fix",
"//third_party/haskell:groom",
],
)

Expand All @@ -19,10 +18,10 @@ haskell_binary(
srcs = ["groupbot.hs"],
deps = [
"//hs-toxcore-c",
hazel_library("base"),
hazel_library("base16-bytestring"),
hazel_library("bytestring"),
hazel_library("directory"),
hazel_library("text"),
"//third_party/haskell:base",
"//third_party/haskell:base16-bytestring",
"//third_party/haskell:bytestring",
"//third_party/haskell:directory",
"//third_party/haskell:text",
],
)

0 comments on commit 2646259

Please sign in to comment.