hs-socks
hs-socks copied to clipboard
Compilation error when using GHC 8.8.1
[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)
| ^^^^
I think this patch fixes it (used in nixpkgs).
#26 should fix this.