Skip to content

Commit

Permalink
v0.14 (#7)
Browse files Browse the repository at this point in the history
* Works with v0.14
  • Loading branch information
kejace committed Jul 14, 2021
1 parent 695ed17 commit ed55ef6
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
@@ -1,5 +1,5 @@
language: node_js
dist: trusty
dist: focal
sudo: required
node_js: stable
install:
Expand Down
2 changes: 1 addition & 1 deletion README.md
@@ -1,5 +1,5 @@
# purescript-solc

[![Build Status](https://travis-ci.org/f-o-a-m/purescript-solc.svg?branch=master)](https://travis-ci.org/f-o-a-m/purescript-solc)
[![Build Status](https://travis-ci.com/f-o-a-m/purescript-solc.svg?branch=master)](https://travis-ci.com/f-o-a-m/purescript-solc)

PureScript bindings for the JavaScript bindings for the Solidity compiler.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -13,8 +13,8 @@
"solc": "^0.5"
},
"devDependencies": {
"purescript-psa": "^0.7.3",
"purescript": "^0.13.0",
"spago": "^0.16.0"
"purescript-psa": "^0.8.2",
"purescript": "^0.14.2",
"spago": "^0.20.3"
}
}
12 changes: 5 additions & 7 deletions packages.dhall
@@ -1,6 +1,5 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.13.8-20201007/packages.dhall sha256:35633f6f591b94d216392c9e0500207bb1fec42dd355f4fecdfd186956567b6b

https://github.com/purescript/package-sets/releases/download/psc-0.14.2-20210629/packages.dhall sha256:534c490bb73cae75adb5a39871142fd8db5c2d74c90509797a80b8bb0d5c3f7b

let overrides = {=}

Expand All @@ -25,15 +24,14 @@ let additions =
, "parsing"
, "partial"
, "profunctor-lenses"
, "proxy"
, "psci-support"
, "tagged"
, "transformers"
, "typelevel-prelude"
, "variant"
]
, repo = "https://github.com/f-o-a-m/purescript-web3"
, version = "v3.0.0"
, version = "v4.0.0"
}
, eth-core =
{ dependencies =
Expand All @@ -53,7 +51,7 @@ let additions =
, repo =
"https://github.com/f-o-a-m/purescript-eth-core.git"
, version =
"v6.0.0"
"v7.0.0"
}
, coroutine-transducers =
{ dependencies =
Expand All @@ -74,9 +72,9 @@ let additions =
, "profunctor"
]
, repo =
"https://github.com/LiamGoodacre/purescript-tagged"
"https://github.com/kejace/purescript-tagged"
, version =
"v3.0.0"
"v0.14"
}
}

Expand Down
17 changes: 15 additions & 2 deletions spago.dhall
Expand Up @@ -6,12 +6,25 @@ You can edit this file as you like.
, dependencies =
[ "aff"
, "argonaut"
, "console"
, "argonaut-codecs"
, "arrays"
, "bifunctors"
, "control"
, "effect"
, "either"
, "eth-core"
, "foldable-traversable"
, "foreign-object"
, "functions"
, "integers"
, "maybe"
, "newtype"
, "node-path"
, "prelude"
, "psci-support"
, "web3"
, "strings"
, "transformers"
, "tuples"
]
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
Expand Down
3 changes: 1 addition & 2 deletions src/Language/Solidity/Compiler.purs
Expand Up @@ -42,8 +42,7 @@ compile
compile solc input readFile = liftEffect $ map (lmap printJsonDecodeError) $
A.decodeJson <$> runFn3 _compile solc (encodeJson input) liftedCallback

where inputJson = A.stringify (A.encodeJson input)
liftedCallback = map (either callbackFailure callbackSuccess) <<< readFile
where liftedCallback = map (either callbackFailure callbackSuccess) <<< readFile

loadRemoteVersion
:: forall m
Expand Down
4 changes: 1 addition & 3 deletions src/Language/Solidity/Compiler/Types/Common.purs
Expand Up @@ -31,9 +31,7 @@ derive newtype instance ordStrung :: Ord a => Ord (Strung a)
derive newtype instance semigroupStrung :: Semigroup a => Semigroup (Strung a)
derive newtype instance monoidStrung :: Monoid a => Monoid (Strung a)

instance newtypeStrung :: Newtype (Strung a) a where
wrap = Strung
unwrap (Strung a) = a
derive instance newtypeStrung :: Newtype (Strung a) _

instance decodeJsonStrung :: DecodeJson a => DecodeJson (Strung a) where
decodeJson j =
Expand Down

0 comments on commit ed55ef6

Please sign in to comment.