haskell-ssh
haskell-ssh copied to clipboard
any release plans ?
Hi @lpeterse, thanks for this package. I'm exploring using it for darcsden and hub.darcs.net. I see you did a bunch more work on it in 2019 - is that close to releasable, or relevant for ssh servers ?
Somewhat related: it's not clear how to get the stream required to start a server - 0.1.0.0's haddock shows a Socket being used, but this is not an instance of DuplexStream.
@simonmichael
I'm hoping for a release, too! I notice in the old released version, onConnect isn't exposed in the config, so I can't create a server I can connect to. However, in this version on Github, onConnect is exposed and I can connect. I'm not sure if I'm just not using the released version properly, or if this is a bug. Anyway, it is fixed in the version here on Github.
You can make Socket an instance of DuplexStream:
import qualified Network.Socket.ByteString as SBS
instance DuplexStream Socket
instance InputStream Socket where
peek = SBS.recv
receive = SBS.recv
instance OutputStream Socket where
send = SBS.send