improve layout
This commit is contained in:
parent
c6884989dc
commit
65de44aa13
1 changed files with 7 additions and 8 deletions
|
@ -75,14 +75,13 @@ handshake
|
||||||
-> Handle -- ^ handle to send data to git
|
-> Handle -- ^ handle to send data to git
|
||||||
-> IO (Either String (Role, [Capability]))
|
-> IO (Either String (Role, [Capability]))
|
||||||
handshake selectrole selectcapability input output =
|
handshake selectrole selectcapability input output =
|
||||||
getpkt pktRole $ \role ->
|
getpkt pktRole $ \role -> checkversion $
|
||||||
checkversion $ do
|
case selectrole role of
|
||||||
case selectrole role of
|
Left e -> return (Left e)
|
||||||
Left e -> return (Left e)
|
Right myrole -> sendpkt rolePkt myrole $
|
||||||
Right myrole -> sendpkt rolePkt myrole $
|
sendpkt versionPkt (Version "2") $
|
||||||
sendpkt versionPkt (Version "2") $
|
exchangecaps $ \mycaps -> return $
|
||||||
exchangecaps $ \mycaps -> return $
|
Right (myrole, mycaps)
|
||||||
Right (myrole, mycaps)
|
|
||||||
where
|
where
|
||||||
protoerr e = return $ Left $ e ++ " from git in protocol handshake"
|
protoerr e = return $ Left $ e ++ " from git in protocol handshake"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue