New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network.CGI.Compat uses deprecated functions from "network" library #45

Open
peti opened this Issue Nov 14, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@peti
Copy link
Collaborator

peti commented Nov 14, 2018

src/Network/CGI/Compat.hs:27:1: warning: [-Wdeprecations]
    Module ‘Network’ is deprecated:
      The high level Network interface is no longer supported. Please use Network.Socket.
   |
27 | import Network (PortID, Socket, listenOn, connectTo)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Network/CGI/Compat.hs:52:13: warning: [-Wdeprecations]
    In the use of type constructor or class ‘PortID’
    (imported from Network):
    Deprecated: "The high level Network interface is no longer supported. Please use Network.Socket."
   |
52 | pwrapper :: PortID  -- ^ The port to run the server on.
   |             ^^^^^^

src/Network/CGI/Compat.hs:55:29: warning: [-Wdeprecations]
    In the use of ‘listenOn’ (imported from Network):
    Deprecated: "The high level Network interface is no longer supported. Please use Network.Socket."
   |
55 | pwrapper pid f = do sock <- listenOn pid
   |                             ^^^^^^^^

src/Network/CGI/Compat.hs:82:33: warning: [-Wdeprecations]
    In the use of type constructor or class ‘PortID’
    (imported from Network):
    Deprecated: "The high level Network interface is no longer supported. Please use Network.Socket."
   |
82 | connectToCGIScript :: String -> PortID -> IO ()
   |                                 ^^^^^^

src/Network/CGI/Compat.hs:87:16: warning: [-Wdeprecations]
    In the use of ‘connectTo’ (imported from Network):
    Deprecated: "The high level Network interface is no longer supported. Please use Network.Socket."
   |
87 |           h <- connectTo host portId
   |                ^^^^^^^^^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment