mirror of
https://github.com/IHaskell/IHaskell.git
synced 2025-04-16 03:16:20 +00:00
ipython-kernel: fix warnings
This commit is contained in:
parent
a8931ad7c1
commit
c5d9d43cec
@ -15,7 +15,7 @@ import Data.ByteString hiding (unpack)
|
||||
import qualified Data.ByteString.Lazy as Lazy
|
||||
import Data.HashMap.Strict as HM
|
||||
import Data.Maybe (fromMaybe)
|
||||
import Data.Text (Text, unpack)
|
||||
import Data.Text (unpack)
|
||||
import Debug.Trace
|
||||
import IHaskell.IPython.Types
|
||||
|
||||
|
@ -194,9 +194,9 @@ serveStdin profile = do
|
||||
-- | Serve on a given sock in a separate thread. Bind the sock in the | given context and then
|
||||
-- loop the provided action, which should listen | on the sock and respond to any events.
|
||||
serveSocket :: SocketType a => Context -> a -> IP -> Port -> (Socket a -> IO b) -> IO ()
|
||||
serveSocket ctxt socketType ip port action = void $
|
||||
serveSocket ctxt socketType ipAddress port action = void $
|
||||
withSocket ctxt socketType $ \sock -> do
|
||||
bind sock $ "tcp://" ++ ip ++ ":" ++ show port
|
||||
bind sock $ "tcp://" ++ ipAddress ++ ":" ++ show port
|
||||
forever $ action sock
|
||||
|
||||
-- | Listener on the heartbeat port. Echoes back any data it was sent.
|
||||
|
Loading…
x
Reference in New Issue
Block a user