Commit c5d9d43c authored by Vaibhav Sagar's avatar Vaibhav Sagar

ipython-kernel: fix warnings

parent a8931ad7
...@@ -15,7 +15,7 @@ import Data.ByteString hiding (unpack) ...@@ -15,7 +15,7 @@ import Data.ByteString hiding (unpack)
import qualified Data.ByteString.Lazy as Lazy import qualified Data.ByteString.Lazy as Lazy
import Data.HashMap.Strict as HM import Data.HashMap.Strict as HM
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import Data.Text (Text, unpack) import Data.Text (unpack)
import Debug.Trace import Debug.Trace
import IHaskell.IPython.Types import IHaskell.IPython.Types
......
...@@ -194,9 +194,9 @@ serveStdin profile = do ...@@ -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 -- | 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. -- 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 :: 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 withSocket ctxt socketType $ \sock -> do
bind sock $ "tcp://" ++ ip ++ ":" ++ show port bind sock $ "tcp://" ++ ipAddress ++ ":" ++ show port
forever $ action sock forever $ action sock
-- | Listener on the heartbeat port. Echoes back any data it was sent. -- | Listener on the heartbeat port. Echoes back any data it was sent.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment