Skip to content

Commit

Permalink
decrease deps size
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Apr 19, 2024
1 parent f2f4db7 commit fbd1d16
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 13 deletions.
71 changes: 63 additions & 8 deletions packages.dhall
Original file line number Diff line number Diff line change
@@ -1,12 +1,67 @@
let upstream =
https://raw.githubusercontent.com/f-o-a-m/package-sets/09b71674a327f7601276846c1afb537342bb57ff/purs-0.15.7-web3.dhall
sha256:7e32f0c65a7b5d334ee98d7fda1d7d3a557b6b478421f545694bd8e1cd4d16ac
with eth-core.version = "v10.0.0"
with js-bigints.version = "v2.2.1"
https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230306/packages.dhall
sha256:0757626c7422b8b5b5b1d0df3d3628e5deac755d7f89c433a9bf89009787dcbd
with js-bigints.version = "v2.2.0"

let eth-core-deps =
https://raw.githubusercontent.com/f-o-a-m/purescript-eth-core/master/packages.dhall
sha256:4f447424877e5d16a78740ab32b371c15ff33728259cbaf0b181ad2ed84478db

let overrides = {=}
let additions =
{ bytestrings = eth-core-deps.bytestrings
, coroutine-transducers =
{ dependencies = [
"console",
"either",
"foldable-traversable",
"freet",
"functors",
"newtype",
"parallel",
"prelude",
"tailrec",
"transformers",
"tuples",
"aff",
"coroutines",
"effect",
"maybe",
"psci-support"
]
, repo = "https://github.com/martyall/purescript-coroutine-transducers"
, version = "v1.0.0"
}
, eth-core =
{ dependencies =
[ "argonaut"
, "arrays"
, "bytestrings"
, "effect"
, "either"
, "foldable-traversable"
, "foreign"
, "functions"
, "gen"
, "integers"
, "js-bigints"
, "lists"
, "maybe"
, "newtype"
, "node-buffer"
, "nonempty"
, "ordered-collections"
, "partial"
, "prelude"
, "quotient"
, "simple-json"
, "strings"
, "unfoldable"
, "unsafe-coerce"
]
, repo = "https://github.com/f-o-a-m/purescript-eth-core"
, version = "v10.0.0"
}
, quotient = eth-core-deps.quotient
}

let additions = {=}

in upstream // overrides // additions
in upstream // additions
1 change: 0 additions & 1 deletion spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
, "coroutines"
, "effect"
, "either"
, "errors"
, "eth-core"
, "exceptions"
, "foldable-traversable"
Expand Down
3 changes: 1 addition & 2 deletions src/Network/Ethereum/Web3/Solidity/Event.purs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ module Network.Ethereum.Web3.Solidity.Event

import Prelude

import Control.Error.Util (note)
import Control.Monad.Error.Class (throwError)
import Data.Array (uncons)
import Data.Bifunctor (lmap)
import Data.Either (Either(..))
import Data.Either (Either(..), note)
import Data.Generic.Rep (class Generic, Argument(..), Constructor(..), NoArguments(..), Product(..), to)
import Data.Maybe (Maybe(..))
import Data.Newtype (class Newtype, wrap)
Expand Down
3 changes: 1 addition & 2 deletions src/Network/Ethereum/Web3/Types/Types.purs
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ import Prelude

import Control.Alt (class Alt)
import Control.Alternative (class Alternative, class Plus, (<|>))
import Control.Error.Util (hush)
import Control.Monad.Error.Class (class MonadError, class MonadThrow, catchError)
import Control.Monad.Except (runExcept)
import Control.Monad.Fork.Class (class MonadBracket, class MonadFork, class MonadKill, bracket, fork, join, kill, suspend, uninterruptible, never) as MFork
import Control.Monad.Reader (class MonadAsk, class MonadReader, ReaderT, ask, lift, runReaderT)
import Control.Monad.Rec.Class (class MonadRec)
import Control.Parallel.Class (class Parallel, parallel, sequential)
import Data.Argonaut as A
import Data.Either (Either(..))
import Data.Either (Either(..), hush)
import Data.Generic.Rep (class Generic)
import Data.Lens.Lens (Lens', Lens, lens)
import Data.Maybe (Maybe(..), maybe)
Expand Down

0 comments on commit fbd1d16

Please sign in to comment.