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 Nov 7, 2023
1 parent b4b8467 commit 10a514f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ bazel-opt_task:
- /src/workspace/tools/inject-repo hs-msgpack-binary
test_all_script:
- cd /src/workspace && bazel test -k
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
--config=ci
//hs-msgpack-binary/...
19 changes: 9 additions & 10 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 @@ -16,13 +15,13 @@ haskell_library(
visibility = ["//visibility:public"],
deps = [
"//hs-msgpack-types",
hazel_library("base"),
hazel_library("binary"),
hazel_library("bytestring"),
hazel_library("data-binary-ieee754"),
hazel_library("monad-validate"),
hazel_library("text"),
hazel_library("vector"),
"//third_party/haskell:base",
"//third_party/haskell:binary",
"//third_party/haskell:bytestring",
"//third_party/haskell:data-binary-ieee754",
"//third_party/haskell:monad-validate",
"//third_party/haskell:text",
"//third_party/haskell:vector",
],
)

Expand All @@ -32,7 +31,7 @@ hspec_test(
deps = [
":hs-msgpack-binary",
"//hs-msgpack-testsuite",
hazel_library("base"),
hazel_library("hspec"),
"//third_party/haskell:base",
"//third_party/haskell:hspec",
],
)
1 change: 0 additions & 1 deletion src/Data/MessagePack.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Trustworthy #-}
{-# OPTIONS_GHC -Wno-orphans #-}
--------------------------------------------------------------------
-- |
Expand Down
3 changes: 1 addition & 2 deletions src/Data/MessagePack/Get.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE LambdaCase #-}

--------------------------------------------------------------------
-- |
Expand Down
3 changes: 1 addition & 2 deletions src/Data/MessagePack/Put.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE LambdaCase #-}
--------------------------------------------------------------------
-- |
-- Module : Data.MessagePack.Put
Expand Down
5 changes: 2 additions & 3 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")

package(features = ["-layering_check"])
Expand All @@ -9,7 +8,7 @@ haskell_binary(
deps = [
"//hs-msgpack-arbitrary",
"//hs-msgpack-binary",
hazel_library("base"),
"//third_party/haskell:base",
],
)

Expand All @@ -19,6 +18,6 @@ haskell_binary(
deps = [
"//hs-msgpack-arbitrary",
"//hs-msgpack-binary",
hazel_library("base"),
"//third_party/haskell:base",
],
)

0 comments on commit 10a514f

Please sign in to comment.