Skip to content

Deprecation warnings in the 'network' package #5

@chris-martin

Description

@chris-martin
Network/Socket/Activation.hs:83:14: warning: [-Wdeprecations]                            
    In the use of ‘unpackFamily’                                                         
    (imported from Network.Socket, but defined in network-2.7.0.0:Network.Socket.Types): 
    Deprecated: "unpackFamily will not be available in version 3.0.0.0 or later."        
   |                                                                                     
83 |     return $ unpackFamily familyInt                                                 
   |              ^^^^^^^^^^^^                                                           
                                                                                         
Network/Socket/Activation.hs:97:35: warning: [-Wdeprecations]                            
    In the use of type constructor or class ‘SocketStatus’                               
    (imported from Network.Socket, but defined in network-2.7.0.0:Network.Socket.Types): 
    Deprecated: "SocketStatus will be removed"                                           
   |                                                                                     
97 | socketStatus :: CInt -> MaybeT IO SocketStatus                                      
   |                                   ^^^^^^^^^^^^                                      
                                                                                         
Network/Socket/Activation.hs:101:19: warning: [-Wdeprecations]                           
    In the use of data constructor ‘Bound’                                               
    (imported from Network.Socket, but defined in network-2.7.0.0:Network.Socket.Types): 
    Deprecated: "SocketStatus will be removed"                                           
    |                                                                                    
101 |       0 -> return Bound                                                            
    |                   ^^^^^                                                            
                                                                                         
Network/Socket/Activation.hs:102:27: warning: [-Wdeprecations]                           
    In the use of data constructor ‘Listening’                                           
    (imported from Network.Socket, but defined in network-2.7.0.0:Network.Socket.Types): 
    Deprecated: "SocketStatus will be removed"                                           
    |                                                                                    
102 |       x | x > 0 -> return Listening                                                
    |                           ^^^^^^^^^                                                

I'm not sure why these things are deprecated; I've raised an issue to ask. haskell/network#324

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions