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 6fda9b4 commit 29ab17c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 32 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-types
test_all_script:
- cd /src/workspace && bazel test -k
--remote_http_cache=http://$CIRRUS_HTTP_CACHE_HOST
--config=ci
//hs-msgpack-types/...
47 changes: 23 additions & 24 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 @@ -12,16 +11,16 @@ haskell_library(
version = "0.3.3",
visibility = ["//visibility:public"],
deps = [
hazel_library("base"),
hazel_library("bytestring"),
hazel_library("containers"),
hazel_library("deepseq"),
hazel_library("hashable"),
hazel_library("monad-validate"),
hazel_library("text"),
hazel_library("transformers"),
hazel_library("unordered-containers"),
hazel_library("vector"),
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:containers",
"//third_party/haskell:deepseq",
"//third_party/haskell:hashable",
"//third_party/haskell:monad-validate",
"//third_party/haskell:text",
"//third_party/haskell:transformers",
"//third_party/haskell:unordered-containers",
"//third_party/haskell:vector",
],
)

Expand All @@ -31,18 +30,18 @@ hspec_test(
compiler_flags = ["-Wno-unused-imports"],
deps = [
":hs-msgpack-types",
hazel_library("QuickCheck"),
hazel_library("base"),
hazel_library("bytestring"),
hazel_library("containers"),
hazel_library("deepseq"),
hazel_library("generic-arbitrary"),
hazel_library("hashable"),
hazel_library("hspec"),
hazel_library("monad-validate"),
hazel_library("quickcheck-instances"),
hazel_library("text"),
hazel_library("unordered-containers"),
hazel_library("vector"),
"//third_party/haskell:QuickCheck",
"//third_party/haskell:base",
"//third_party/haskell:bytestring",
"//third_party/haskell:containers",
"//third_party/haskell:deepseq",
"//third_party/haskell:generic-arbitrary",
"//third_party/haskell:hashable",
"//third_party/haskell:hspec",
"//third_party/haskell:monad-validate",
"//third_party/haskell:quickcheck-instances",
"//third_party/haskell:text",
"//third_party/haskell:unordered-containers",
"//third_party/haskell:vector",
],
)
1 change: 0 additions & 1 deletion src/Data/MessagePack/Types.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE Trustworthy #-}
module Data.MessagePack.Types
( Assoc (..)
, Object (..)
Expand Down
1 change: 0 additions & 1 deletion src/Data/MessagePack/Types/Assoc.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}

--------------------------------------------------------------------
-- |
Expand Down
3 changes: 1 addition & 2 deletions src/Data/MessagePack/Types/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE ViewPatterns #-}

--------------------------------------------------------------------
Expand Down Expand Up @@ -34,8 +33,8 @@ import Control.Arrow ((***))
import Control.Monad.Validate (MonadValidate (..))
import qualified Data.ByteString as S
import qualified Data.ByteString.Lazy as L
import qualified Data.HashMap.Strict as HashMap
import Data.Hashable (Hashable)
import qualified Data.HashMap.Strict as HashMap
import Data.Int (Int16, Int32, Int64, Int8)
import qualified Data.IntMap.Strict as IntMap
import qualified Data.Map as Map
Expand Down
1 change: 0 additions & 1 deletion src/Data/MessagePack/Types/DecodeError.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{-# OPTIONS_GHC -Wno-orphans #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE Trustworthy #-}
module Data.MessagePack.Types.DecodeError
( DecodeError
, decodeError
Expand Down
1 change: 0 additions & 1 deletion src/Data/MessagePack/Types/Generic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE UndecidableInstances #-}
module Data.MessagePack.Types.Generic () where
Expand Down
1 change: 0 additions & 1 deletion src/Data/MessagePack/Types/Object.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE Trustworthy #-}
module Data.MessagePack.Types.Object
( Object (..)
) where
Expand Down

0 comments on commit 29ab17c

Please sign in to comment.