Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Commit 6ccede6

Browse files
author
Julian Arni
authored
Upgrade deps for hackage release (#679)
Upgrade deps to hackage versions
1 parent e4049d0 commit 6ccede6

File tree

4 files changed

+23
-24
lines changed

4 files changed

+23
-24
lines changed

.circleci/config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
- run:
5454
name: Homebrew Dependencies
5555
command: |
56+
brew update
5657
brew bundle
5758
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> $BASH_ENV
5859

package.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ tests:
105105
- time
106106
build-tools:
107107
- tasty-discover
108-
ghc-options: -threaded -rtsopts -with-rtsopts=-N
108+
ghc-options: [-threaded, -rtsopts, -with-rtsopts=-N]
109109
doctest:
110110
main: Main.hs
111111
source-dirs:
@@ -114,7 +114,7 @@ tests:
114114
- doctest
115115
- Glob
116116
- hpack
117-
ghc-options: -threaded -rtsopts -with-rtsopts=-N
117+
ghc-options: [-threaded, -rtsopts, -with-rtsopts=-N]
118118
e2e:
119119
main: Main.hs
120120
source-dirs:
@@ -145,7 +145,7 @@ executables:
145145
- filepath
146146
- text
147147
- unix
148-
ghc-options: -main-is Rad -O3 -threaded
148+
ghc-options: ["-main-is", "Rad", "-O3", "-threaded"]
149149

150150
radicle:
151151
main: RadicleExe.hs
@@ -156,7 +156,7 @@ executables:
156156
- bytestring
157157
- directory
158158
- optparse-applicative
159-
ghc-options: -main-is RadicleExe
159+
ghc-options: ["-main-is", "RadicleExe"]
160160

161161
rad-daemon-radicle:
162162
main: Daemon.hs
@@ -173,7 +173,7 @@ executables:
173173
- unliftio
174174
- wai-cors
175175
- warp
176-
ghc-options: -main-is Daemon
176+
ghc-options: ["-main-is", "Daemon"]
177177

178178
rad-repl:
179179
main: RadicleRepl.hs
@@ -182,7 +182,7 @@ executables:
182182
dependencies:
183183
- radicle
184184
- optparse-applicative
185-
ghc-options: -main-is RadicleRepl
185+
ghc-options: ["-main-is", "RadicleRepl"]
186186

187187
radicle-doc:
188188
main: Doc.hs
@@ -193,7 +193,7 @@ executables:
193193
- optparse-applicative
194194
- pandoc
195195
- text
196-
ghc-options: -main-is Doc
196+
ghc-options: ["-main-is", "Doc"]
197197

198198
radicle-ref-doc:
199199
main: ReferenceDoc.hs
@@ -206,7 +206,7 @@ executables:
206206
- containers
207207
- text
208208
- yaml
209-
ghc-options: -main-is ReferenceDoc
209+
ghc-options: ["-main-is", "ReferenceDoc"]
210210

211211
radicle-github-issues:
212212
main: GithubIssues.hs
@@ -218,7 +218,7 @@ executables:
218218
- time
219219
- github < 0.21
220220
- optparse-applicative
221-
ghc-options: -main-is GithubIssues
221+
ghc-options: ["-main-is", "GithubIssues"]
222222

223223
radicle-benchmark:
224224
main: Benchmarks.hs
@@ -227,7 +227,7 @@ executables:
227227
dependencies:
228228
- radicle
229229
- criterion
230-
ghc-options: -main-is Benchmarks
230+
ghc-options: ["-main-is", "Benchmarks"]
231231

232232
rad-machines:
233233
main: Machines.hs
@@ -237,7 +237,7 @@ executables:
237237
- radicle
238238
- optparse-applicative
239239
- safe-exceptions
240-
ghc-options: -main-is Machines
240+
ghc-options: ["-main-is", "Machines"]
241241

242242
default-extensions:
243243
- AutoDeriveTypeable

snapshot.yaml

+7-9
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@ packages:
1515
- github-0.20
1616
- sandi-0.4.3@sha256:2ada9c759424f243095ab28b55687cdec4e9d16bac3589f9d200280207c50216
1717
- serialise-0.2.1.0
18-
- git: https://github.com/oscoin/ipfs.git
19-
commit: 057ba4a4bf9bb846a08b1208b0ed45af33a38082
20-
subdirs:
21-
- ipfs-api
22-
- ipld-cid
23-
- binary-varint
24-
- git-remote-ipfs
25-
- multibase
26-
- multihash-cryptonite
18+
- ipfs-api-0.1.0.0
19+
- ipld-cid-0.1.0.0
20+
- binary-varint-0.1.0.0
21+
- git-remote-ipfs-0.1.0.0
22+
- multibase-0.1.0.0
23+
- multihash-cryptonite-0.1.0.0
24+
- base32-z-bytestring-1.0.0.0
2725

2826
flags:
2927
sandi:

src/Radicle/Ipfs.hs

+4-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ import Control.Retry
5959
import Data.Aeson (FromJSON, ToJSON, (.:), (.=))
6060
import qualified Data.Aeson as Aeson
6161
import qualified Data.Aeson.Types as Aeson
62-
import qualified Data.ByteString.Multibase as Multibase
62+
import qualified Data.ByteString.BaseN as Multibase
6363
import Data.Conduit ((.|))
6464
import qualified Data.Conduit as C
6565
import qualified Data.Conduit.Attoparsec as C
@@ -224,9 +224,9 @@ data PubsubMessage = PubsubMessage
224224
instance FromJSON PubsubMessage where
225225
parseJSON = Aeson.withObject "PubsubMessage" $ \o -> do
226226
messageTopicIDs <- o .: "topicIDs"
227-
Right messageData <- o .: "data" <&> T.encodeUtf8 <&> Multibase.decodeBase64
228-
Right messageFrom <- o .: "from" <&> T.encodeUtf8 <&> Multibase.decodeBase64
229-
Right messageSeqno <- o .: "seqno" <&> T.encodeUtf8 <&> Multibase.decodeBase64
227+
Just messageData <- o .: "data" <&> T.encodeUtf8 <&> Multibase.decodeBase64
228+
Just messageFrom <- o .: "from" <&> T.encodeUtf8 <&> Multibase.decodeBase64
229+
Just messageSeqno <- o .: "seqno" <&> T.encodeUtf8 <&> Multibase.decodeBase64
230230
pure PubsubMessage {..}
231231

232232
-- | Subscribe to a topic and call @messageHandler@ on every message.

0 commit comments

Comments
 (0)