Skip to content

Commit

Permalink
Changed port back to PortNumber and fixed the import from
Browse files Browse the repository at this point in the history
Network.Socket.
  • Loading branch information
mdunnio committed Aug 1, 2020
1 parent 91e6bd0 commit cc5be95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lib/CoinbasePro/Environment.hs
Expand Up @@ -7,7 +7,7 @@ module CoinbasePro.Environment
) where


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


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

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


Expand Down
2 changes: 1 addition & 1 deletion src/lib/CoinbasePro/WebSocketFeed.hs
Expand Up @@ -42,7 +42,7 @@ subscribe wsConn prids channels cpc = do
return is
where
wsHost = host wsConn
wsPort = fromIntegral $ port wsConn
wsPort = port wsConn

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

Expand Down

0 comments on commit cc5be95

Please sign in to comment.