vincenthz / hs-socks Goto Github PK
View Code? Open in Web Editor NEWSocks proxy library for haskell
License: Other
Socks proxy library for haskell
License: Other
The file Example.hs
uses the function socksConnectAddr
which is marked as deprecated. Would be nice to update that to use its suggested replacement socksConnectWithSocket
.
I tried to cabal install latest pandoc and with ghc-7.4.2 sock-0.5.5 failed to build:
build.log (root.log shows the base package versions)
Network/Socks5/Parse.hs:212:13:
No instance for (Data.String.IsString ByteString)
arising from the literal `""'
Possible fix:
add an instance declaration for (Data.String.IsString ByteString)
In the pattern: ""
In the pattern: (_, "")
In a case alternative:
(_, "") -> runParser (getMore >> skipWhile p) B.empty err ok
[1 of 7] Compiling Network.Socks5.Parse ( Network/Socks5/Parse.hs, dist/build/Network/Socks5/Parse.o )
Network/Socks5/Parse.hs:74:5: error:
‘fail’ is not a (visible) method of class ‘Monad’
|
74 | fail errorMsg = Parser $ \buf err _ -> err buf ("failed: " ++ errorMsg)
| ^^^^
Fails with:
[6 of 7] Compiling Network.Socks5.Lowlevel ( Network/Socks5/Lowlevel.hs, dist/build/Network/Socks5/Lowlevel.o )
Network/Socks5/Lowlevel.hs:10:1: error:
Could not load module ‘Network.BSD’
It is a member of the hidden package ‘network-2.8.0.0’.
Perhaps you need to add ‘network’ to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
|
10 | import Network.BSD
| ^^^^^^^^^^^^^^^^^^
Network.BSD
now lives in its own package, network-bsd
.
I get the following error when building against cereal-0.3.0.0. It works with cereal-0.3.5.2. Looks like socks needs a version constraint on cereal.
Network/Socks5/Command.hs:79:46: Not in scope: `runGetPartial'
Network/Socks5/Command.hs:80:12:
Not in scope: data constructor `Fail'
Network/Socks5/Command.hs:81:12:
Not in scope: data constructor `Partial'
Network/Socks5/Command.hs:82:12:
Not in scope: data constructor `Done'
IPv6 address on the wire should be in network byte order, but Word32
s in HostAddress6
are in host byte order, so we should use getWord32be
/ putWord32be
.
Network/Socks5.hs:77:50:
Ambiguous occurrence `sClose'
It could refer to either `Network.Socket.sClose',
imported from `Network.Socket' at Network/Socks5.hs:45:1-21
or `Network.sClose',
imported from `Network' at Network/Socks5.hs:51:1-14
Network/Socks5.hs:113:50:
Ambiguous occurrence `sClose'
It could refer to either `Network.Socket.sClose',
imported from `Network.Socket' at Network/Socks5.hs:45:1-21
or `Network.sClose',
imported from `Network' at Network/Socks5.hs:51:1-14
Failed to install socks-0.5.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.