ipython-kernel: fix warnings

This commit is contained in:
Vaibhav Sagar 2019-08-03 11:52:47 -04:00
parent a8931ad7c1
commit c5d9d43cec
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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.