Skip to content

build failure w/ socks-0.6 #14

@DanBurton

Description

@DanBurton

It seems that defaultSocksConf now only takes one argument

http://hackage.haskell.org/package/socks-0.6.0/docs/Network-Socks5.html#v:defaultSocksConf

[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)
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions