Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update to new third_party method for haskell deps. #97

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
],
)
Loading