update for telegram-cli fork
This commit is contained in:
parent
bd52198433
commit
3ce3844d9d
@ -17,7 +17,7 @@ args = ["-d", "-P", show port]
|
|||||||
|
|
||||||
telegramProcess :: IO ProcessHandle
|
telegramProcess :: IO ProcessHandle
|
||||||
telegramProcess = do
|
telegramProcess = do
|
||||||
(_,_,_, handle) <- createProcess (proc program args) { create_group = True }
|
(_,_,_, handle) <- createProcess (proc program args)
|
||||||
return handle
|
return handle
|
||||||
|
|
||||||
|
|
||||||
@ -28,8 +28,7 @@ telegramSocket = recoverAll timeout (const connect)
|
|||||||
|
|
||||||
|
|
||||||
closeTelegram :: Handle -> ProcessHandle -> IO ()
|
closeTelegram :: Handle -> ProcessHandle -> IO ()
|
||||||
closeTelegram socket handle =
|
closeTelegram socket handle = hClose socket >> terminateProcess handle
|
||||||
hClose socket >> replicateM_ 2 (interruptProcessGroupOf handle)
|
|
||||||
|
|
||||||
|
|
||||||
send :: Handle -> String -> IO ()
|
send :: Handle -> String -> IO ()
|
||||||
|
@ -12,7 +12,7 @@ cabal-version: >=1.10
|
|||||||
|
|
||||||
executable oglaf
|
executable oglaf
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
build-depends: base >=4.8 && <4.9, network,
|
build-depends: base == 4.9.*, network,
|
||||||
bytestring, text, retry, tagsoup,
|
bytestring, text, retry, tagsoup,
|
||||||
MissingH, process, temporary,
|
MissingH, process, temporary,
|
||||||
http-conduit, xml-conduit, html-conduit
|
http-conduit, xml-conduit, html-conduit
|
||||||
|
Loading…
Reference in New Issue
Block a user