Skip to content

Commit

Permalink
Upgraded to lts-16.7 (ghc 8.8.3); version 0.8.1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdunnio committed Aug 1, 2020
1 parent 821e546 commit 038a2cc
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 10 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Version 0.8.1.0

- Upgraded to lts-16.6 (ghc 8.8.3)

# Version 0.8.0.0

## Breaking API changes:
Expand Down
6 changes: 3 additions & 3 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: coinbase-pro
version: 0.8.0.0
version: 0.8.1.0
description: Client for Coinbase Pro REST and Websocket APIs
homepage: https://github.com/mdunnio/coinbase-pro#readme
bug-reports: https://github.com/mdunnio/coinbase-pro/issues
Expand Down Expand Up @@ -35,12 +35,12 @@ dependencies:
- http-types >= 0.12 && < 0.13
- io-streams >= 1.5 && < 1.6
- memory >= 0.14 && < 0.16
- network >= 2.6 && < 2.9
- network >= 2.6 && < 3.2
- servant >= 0.14 && < 0.17
- servant-client >= 0.14 && < 0.17
- servant-client-core >= 0.14 && < 0.17
- text >= 1.2 && < 1.3
- time >= 1.8 && < 1.9
- time >= 1.8 && < 2.0
- transformers >= 0.5 && < 0.6
- unagi-streams >= 0.2 && < 0.3
- unordered-containers >= 0.2 && < 0.3
Expand Down
5 changes: 2 additions & 3 deletions src/lib/CoinbasePro/Environment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ module CoinbasePro.Environment
) where


import Network.Socket (HostName)
import Network.Socket.Internal (PortNumber)
import Network.Socket (HostName)


data Environment = Production | Sandbox
Expand All @@ -29,7 +28,7 @@ sandboxAPIEndpoint = "api-public.sandbox.pro.coinbase.com"

data WSConnection = WSConnection
{ host :: HostName
, port :: PortNumber
, port :: Int
} deriving (Eq, Show)


Expand Down
4 changes: 1 addition & 3 deletions src/lib/CoinbasePro/WebSocketFeed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Control.Concurrent (forkIO)
import Control.Monad (forever)
import Control.Monad.IO.Class (liftIO)
import Data.Aeson (eitherDecode', encode)
import Data.Either (either)
import Data.Maybe (maybe)
import Network.HTTP.Types (methodGet)
import qualified Network.WebSockets as WS
import qualified System.IO.Streams as Streams
Expand Down Expand Up @@ -44,7 +42,7 @@ subscribe wsConn prids channels cpc = do
return is
where
wsHost = host wsConn
wsPort = port wsConn
wsPort = fromIntegral $ port wsConn

mkWsRequest = maybe (return $ encode wsRequest) (fmap encode . authWsRequest)

Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-14.17
resolver: lts-16.7

ghc-options:
"$locals": -Wall
Expand Down
26 changes: 26 additions & 0 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
hackage: unagi-streams-0.2.6@sha256:32f4ba71b07b0fb68ed2e4d1489c063f72d32c321e2d485485f602eb10e12acb,1145
pantry-tree:
size: 329
sha256: f8f9d8089c62c9e7a6265a018a01585dec0bbd6d8cde20bd53e47e3fa4575c5c
original:
hackage: unagi-streams-0.2.6
- completed:
hackage: unagi-chan-0.4.1.3@sha256:4283bb02bc5ee56203671756d92b24112eb6159f2b2840a10a539b4651d5f12e,8719
pantry-tree:
size: 2286
sha256: d4d8d0f9108246f1dfd415ee4bca596493067b4935a9c9933f98bf8e6821e605
original:
hackage: unagi-chan-0.4.1.3
snapshots:
- completed:
size: 531932
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/7.yaml
sha256: 96ceeddd4fd68b2d430f7695a12eadefee760b7034c88c75d99d0f380f483068
original: lts-16.7

0 comments on commit 038a2cc

Please sign in to comment.