cheecheeo / haskell-cgi

A library for writing CGI programs
Other
5 stars 9 forks source link

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

Closed peti closed 5 years ago

peti commented 6 years ago
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
   |                ^^^^^^^^^
peti commented 5 years ago

Dropped the obsolete module in 089b300a66724806cbb3ffac82d647711189798a.