[5 of 6] Compiling Network.Anonymous.Tor.Protocol ( src/Network/Anonymous/Tor/Protocol.hs, dist/build/Network/Anonymous/Tor/Protocol.o )
src/Network/Anonymous/Tor/Protocol.hs:170:12-65: error:
• Couldn't match expected type ‘Integer -> t’
with actual type ‘Socks.SocksConf’
• The function ‘Socks.defaultSocksConf’
is applied to two arguments,
but its type ‘Network.SockAddr -> Socks.SocksConf’ has only one
In the expression:
Socks.defaultSocksConf "127.0.0.1" (fromInteger sport)
In an equation for ‘conf’:
conf = Socks.defaultSocksConf "127.0.0.1" (fromInteger sport)
• Relevant bindings include
conf :: t (bound at src/Network/Anonymous/Tor/Protocol.hs:170:5)
|
170 | conf = Socks.defaultSocksConf "127.0.0.1" (fromInteger sport)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
It seems that
defaultSocksConfnow only takes one argumenthttp://hackage.haskell.org/package/socks-0.6.0/docs/Network-Socks5.html#v:defaultSocksConf