packages feed

gi-soup 2.4.14 → 2.4.15

raw patch · 4 files changed

+16/−18 lines, 4 filesdep ~haskell-gidep ~haskell-gi-basedep ~haskell-gi-overloadingPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: haskell-gi, haskell-gi-base, haskell-gi-overloading

API changes (from Hackage documentation)

- GI.Soup.PkgInfo: flags :: [(String, Bool)]
- GI.Soup.PkgInfo: pkgConfigVersions :: [(String, String)]
+ GI.Soup.Objects.WebsocketConnection: afterWebsocketConnectionPong :: (IsWebsocketConnection a, MonadIO m) => a -> WebsocketConnectionPongCallback -> m SignalHandlerId
+ GI.Soup.Objects.WebsocketConnection: genClosure_WebsocketConnectionPong :: WebsocketConnectionPongCallback -> IO Closure
+ GI.Soup.Objects.WebsocketConnection: mk_WebsocketConnectionPongCallback :: C_WebsocketConnectionPongCallback -> IO (FunPtr C_WebsocketConnectionPongCallback)
+ GI.Soup.Objects.WebsocketConnection: noWebsocketConnectionPongCallback :: Maybe WebsocketConnectionPongCallback
+ GI.Soup.Objects.WebsocketConnection: onWebsocketConnectionPong :: (IsWebsocketConnection a, MonadIO m) => a -> WebsocketConnectionPongCallback -> m SignalHandlerId
+ GI.Soup.Objects.WebsocketConnection: type C_WebsocketConnectionPongCallback = Ptr () -> Ptr Bytes -> Ptr () -> IO ()
+ GI.Soup.Objects.WebsocketConnection: type WebsocketConnectionPongCallback = Bytes /@message@/: the application data (if any) -> IO ()
+ GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionPongCallback :: WebsocketConnectionPongCallback -> C_WebsocketConnectionPongCallback
- GI.Soup.Callbacks: type AddressCallback = Address -> Word32 -> IO ()
+ GI.Soup.Callbacks: type AddressCallback = Address /@addr@/: the 'GI.Soup.Objects.Address.Address' that was resolved -> Word32 /@status@/: 'GI.Soup.Enums.StatusOk', 'GI.Soup.Enums.StatusCantResolve', or 'GI.Soup.Enums.StatusCancelled' -> IO ()
- GI.Soup.Callbacks: type AddressCallback_WithClosures = Address -> Word32 -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type AddressCallback_WithClosures = Address /@addr@/: the 'GI.Soup.Objects.Address.Address' that was resolved -> Word32 /@status@/: 'GI.Soup.Enums.StatusOk', 'GI.Soup.Enums.StatusCantResolve', or 'GI.Soup.Enums.StatusCancelled' -> Ptr () /@userData@/: the user data that was passed to 'GI.Soup.Objects.Address.addressResolveAsync' -> IO ()
- GI.Soup.Callbacks: type AuthDomainBasicAuthCallback = AuthDomain -> Message -> Text -> Text -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainBasicAuthCallback = AuthDomain /@domain@/: the domain -> Message /@msg@/: the message being authenticated -> Text /@username@/: the username provided by the client -> Text /@password@/: the password provided by the client -> IO Bool __Returns:__ 'True' if /@username@/ and /@password@/ are valid
- GI.Soup.Callbacks: type AuthDomainBasicAuthCallback_WithClosures = AuthDomain -> Message -> Text -> Text -> Ptr () -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainBasicAuthCallback_WithClosures = AuthDomain /@domain@/: the domain -> Message /@msg@/: the message being authenticated -> Text /@username@/: the username provided by the client -> Text /@password@/: the password provided by the client -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.AuthDomain.authDomainBasicSetAuthCallback' -> IO Bool __Returns:__ 'True' if /@username@/ and /@password@/ are valid
- GI.Soup.Callbacks: type AuthDomainDigestAuthCallback = AuthDomain -> Message -> Text -> IO (Maybe Text)
+ GI.Soup.Callbacks: type AuthDomainDigestAuthCallback = AuthDomain /@domain@/: the domain -> Message /@msg@/: the message being authenticated -> Text /@username@/: the username provided by the client -> IO (Maybe Text) __Returns:__ the encoded password, or 'Nothing' if /@username@/ is not a valid user. /@domain@/ will free the password when it is done with it.
- GI.Soup.Callbacks: type AuthDomainDigestAuthCallback_WithClosures = AuthDomain -> Message -> Text -> Ptr () -> IO (Maybe Text)
+ GI.Soup.Callbacks: type AuthDomainDigestAuthCallback_WithClosures = AuthDomain /@domain@/: the domain -> Message /@msg@/: the message being authenticated -> Text /@username@/: the username provided by the client -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.AuthDomain.authDomainDigestSetAuthCallback' -> IO (Maybe Text) __Returns:__ the encoded password, or 'Nothing' if /@username@/ is not a valid user. /@domain@/ will free the password when it is done with it.
- GI.Soup.Callbacks: type AuthDomainFilter = AuthDomain -> Message -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainFilter = AuthDomain /@domain@/: a 'GI.Soup.Objects.AuthDomain.AuthDomain' -> Message /@msg@/: a 'GI.Soup.Objects.Message.Message' -> IO Bool __Returns:__ 'True' if /@msg@/ requires authentication, 'False' if not.
- GI.Soup.Callbacks: type AuthDomainFilter_WithClosures = AuthDomain -> Message -> Ptr () -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainFilter_WithClosures = AuthDomain /@domain@/: a 'GI.Soup.Objects.AuthDomain.AuthDomain' -> Message /@msg@/: a 'GI.Soup.Objects.Message.Message' -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.AuthDomain.authDomainSetFilter' -> IO Bool __Returns:__ 'True' if /@msg@/ requires authentication, 'False' if not.
- GI.Soup.Callbacks: type AuthDomainGenericAuthCallback = AuthDomain -> Message -> Text -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainGenericAuthCallback = AuthDomain /@domain@/: a 'GI.Soup.Objects.AuthDomain.AuthDomain' -> Message /@msg@/: the 'GI.Soup.Objects.Message.Message' being authenticated -> Text /@username@/: the username from /@msg@/ -> IO Bool __Returns:__ 'True' if /@msg@/ is authenticated, 'False' if not.
- GI.Soup.Callbacks: type AuthDomainGenericAuthCallback_WithClosures = AuthDomain -> Message -> Text -> Ptr () -> IO Bool
+ GI.Soup.Callbacks: type AuthDomainGenericAuthCallback_WithClosures = AuthDomain /@domain@/: a 'GI.Soup.Objects.AuthDomain.AuthDomain' -> Message /@msg@/: the 'GI.Soup.Objects.Message.Message' being authenticated -> Text /@username@/: the username from /@msg@/ -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.AuthDomain.authDomainSetGenericAuthCallback' -> IO Bool __Returns:__ 'True' if /@msg@/ is authenticated, 'False' if not.
- GI.Soup.Callbacks: type ChunkAllocator = Message -> Word64 -> IO (Maybe Buffer)
+ GI.Soup.Callbacks: type ChunkAllocator = Message /@msg@/: the 'GI.Soup.Objects.Message.Message' the chunk is being allocated for -> Word64 /@maxLen@/: the maximum length that will be read, or 0. -> IO (Maybe Buffer) __Returns:__ the new buffer (or 'Nothing')
- GI.Soup.Callbacks: type ChunkAllocator_WithClosures = Message -> Word64 -> Ptr () -> IO (Maybe Buffer)
+ GI.Soup.Callbacks: type ChunkAllocator_WithClosures = Message /@msg@/: the 'GI.Soup.Objects.Message.Message' the chunk is being allocated for -> Word64 /@maxLen@/: the maximum length that will be read, or 0. -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.Message.messageSetChunkAllocator' -> IO (Maybe Buffer) __Returns:__ the new buffer (or 'Nothing')
- GI.Soup.Callbacks: type LoggerFilter = Logger -> Message -> IO LoggerLogLevel
+ GI.Soup.Callbacks: type LoggerFilter = Logger /@logger@/: the 'GI.Soup.Objects.Logger.Logger' -> Message /@msg@/: the message being logged -> IO LoggerLogLevel __Returns:__ a 'GI.Soup.Enums.LoggerLogLevel' value indicating how much of the message to log
- GI.Soup.Callbacks: type LoggerFilter_WithClosures = Logger -> Message -> Ptr () -> IO LoggerLogLevel
+ GI.Soup.Callbacks: type LoggerFilter_WithClosures = Logger /@logger@/: the 'GI.Soup.Objects.Logger.Logger' -> Message /@msg@/: the message being logged -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.Logger.loggerSetRequestFilter' or 'GI.Soup.Objects.Logger.loggerSetResponseFilter' -> IO LoggerLogLevel __Returns:__ a 'GI.Soup.Enums.LoggerLogLevel' value indicating how much of the message to log
- GI.Soup.Callbacks: type LoggerPrinter = Logger -> LoggerLogLevel -> Int8 -> Text -> IO ()
+ GI.Soup.Callbacks: type LoggerPrinter = Logger /@logger@/: the 'GI.Soup.Objects.Logger.Logger' -> LoggerLogLevel /@level@/: the level of the information being printed. -> Int8 /@direction@/: a single-character prefix to /@data@/ -> Text /@data@/: data to print -> IO ()
- GI.Soup.Callbacks: type LoggerPrinter_WithClosures = Logger -> LoggerLogLevel -> Int8 -> Text -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type LoggerPrinter_WithClosures = Logger /@logger@/: the 'GI.Soup.Objects.Logger.Logger' -> LoggerLogLevel /@level@/: the level of the information being printed. -> Int8 /@direction@/: a single-character prefix to /@data@/ -> Text /@data@/: data to print -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.Logger.loggerSetPrinter' -> IO ()
- GI.Soup.Callbacks: type MessageHeadersForeachFunc = Text -> Text -> IO ()
+ GI.Soup.Callbacks: type MessageHeadersForeachFunc = Text /@name@/: the header name -> Text /@value@/: the header value -> IO ()
- GI.Soup.Callbacks: type MessageHeadersForeachFunc_WithClosures = Text -> Text -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type MessageHeadersForeachFunc_WithClosures = Text /@name@/: the header name -> Text /@value@/: the header value -> Ptr () /@userData@/: the data passed to 'GI.Soup.Structs.MessageHeaders.messageHeadersForeach' -> IO ()
- GI.Soup.Callbacks: type ProxyURIResolverCallback = ProxyURIResolver -> Word32 -> URI -> IO ()
+ GI.Soup.Callbacks: type ProxyURIResolverCallback = ProxyURIResolver /@resolver@/: the 'GI.Soup.Interfaces.ProxyURIResolver.ProxyURIResolver' -> Word32 /@status@/: a 'GI.Soup.Enums.Status' -> URI /@proxyUri@/: the resolved proxy URI, or 'Nothing' -> IO ()
- GI.Soup.Callbacks: type ProxyURIResolverCallback_WithClosures = ProxyURIResolver -> Word32 -> URI -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type ProxyURIResolverCallback_WithClosures = ProxyURIResolver /@resolver@/: the 'GI.Soup.Interfaces.ProxyURIResolver.ProxyURIResolver' -> Word32 /@status@/: a 'GI.Soup.Enums.Status' -> URI /@proxyUri@/: the resolved proxy URI, or 'Nothing' -> Ptr () /@userData@/: data passed to 'GI.Soup.Interfaces.ProxyURIResolver.proxyURIResolverGetProxyUriAsync' -> IO ()
- GI.Soup.Callbacks: type ServerCallback = Server -> Message -> Text -> Maybe (Map Text Text) -> ClientContext -> IO ()
+ GI.Soup.Callbacks: type ServerCallback = Server /@server@/: the 'GI.Soup.Objects.Server.Server' -> Message /@msg@/: the message being processed -> Text /@path@/: the path component of /@msg@/\'s Request-URI -> Maybe (Map Text Text) /@query@/: the parsed query component of /@msg@/\'s Request-URI -> ClientContext /@client@/: additional contextual information about the client -> IO ()
- GI.Soup.Callbacks: type ServerCallback_WithClosures = Server -> Message -> Text -> Maybe (Map Text Text) -> ClientContext -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type ServerCallback_WithClosures = Server /@server@/: the 'GI.Soup.Objects.Server.Server' -> Message /@msg@/: the message being processed -> Text /@path@/: the path component of /@msg@/\'s Request-URI -> Maybe (Map Text Text) /@query@/: the parsed query component of /@msg@/\'s Request-URI -> ClientContext /@client@/: additional contextual information about the client -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.Server.serverAddHandler' or 'GI.Soup.Objects.Server.serverAddEarlyHandler'. -> IO ()
- GI.Soup.Callbacks: type ServerWebsocketCallback = Server -> WebsocketConnection -> Text -> ClientContext -> IO ()
+ GI.Soup.Callbacks: type ServerWebsocketCallback = Server /@server@/: the 'GI.Soup.Objects.Server.Server' -> WebsocketConnection /@connection@/: the newly created WebSocket connection -> Text /@path@/: the path component of /@msg@/\'s Request-URI -> ClientContext /@client@/: additional contextual information about the client -> IO ()
- GI.Soup.Callbacks: type ServerWebsocketCallback_WithClosures = Server -> WebsocketConnection -> Text -> ClientContext -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type ServerWebsocketCallback_WithClosures = Server /@server@/: the 'GI.Soup.Objects.Server.Server' -> WebsocketConnection /@connection@/: the newly created WebSocket connection -> Text /@path@/: the path component of /@msg@/\'s Request-URI -> ClientContext /@client@/: additional contextual information about the client -> Ptr () /@userData@/: the data passed to /@soupServerAddHandler@/ -> IO ()
- GI.Soup.Callbacks: type SessionCallback = Session -> Message -> IO ()
+ GI.Soup.Callbacks: type SessionCallback = Session /@session@/: the session -> Message /@msg@/: the message that has finished -> IO ()
- GI.Soup.Callbacks: type SessionCallback_WithClosures = Session -> Message -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type SessionCallback_WithClosures = Session /@session@/: the session -> Message /@msg@/: the message that has finished -> Ptr () /@userData@/: the data passed to soup_session_queue_message -> IO ()
- GI.Soup.Callbacks: type SocketCallback = Socket -> Word32 -> IO ()
+ GI.Soup.Callbacks: type SocketCallback = Socket /@sock@/: the 'GI.Soup.Objects.Socket.Socket' -> Word32 /@status@/: an HTTP status code indicating success or failure -> IO ()
- GI.Soup.Callbacks: type SocketCallback_WithClosures = Socket -> Word32 -> Ptr () -> IO ()
+ GI.Soup.Callbacks: type SocketCallback_WithClosures = Socket /@sock@/: the 'GI.Soup.Objects.Socket.Socket' -> Word32 /@status@/: an HTTP status code indicating success or failure -> Ptr () /@userData@/: the data passed to 'GI.Soup.Objects.Socket.socketConnectAsync' -> IO ()
- GI.Soup.Callbacks: wrap_AddressCallback :: Maybe (Ptr (FunPtr C_AddressCallback)) -> AddressCallback_WithClosures -> Ptr Address -> Word32 -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_AddressCallback :: Maybe (Ptr (FunPtr C_AddressCallback)) -> AddressCallback_WithClosures -> C_AddressCallback
- GI.Soup.Callbacks: wrap_AuthDomainBasicAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainBasicAuthCallback)) -> AuthDomainBasicAuthCallback_WithClosures -> Ptr AuthDomain -> Ptr Message -> CString -> CString -> Ptr () -> IO CInt
+ GI.Soup.Callbacks: wrap_AuthDomainBasicAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainBasicAuthCallback)) -> AuthDomainBasicAuthCallback_WithClosures -> C_AuthDomainBasicAuthCallback
- GI.Soup.Callbacks: wrap_AuthDomainDigestAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainDigestAuthCallback)) -> AuthDomainDigestAuthCallback_WithClosures -> Ptr AuthDomain -> Ptr Message -> CString -> Ptr () -> IO CString
+ GI.Soup.Callbacks: wrap_AuthDomainDigestAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainDigestAuthCallback)) -> AuthDomainDigestAuthCallback_WithClosures -> C_AuthDomainDigestAuthCallback
- GI.Soup.Callbacks: wrap_AuthDomainFilter :: Maybe (Ptr (FunPtr C_AuthDomainFilter)) -> AuthDomainFilter_WithClosures -> Ptr AuthDomain -> Ptr Message -> Ptr () -> IO CInt
+ GI.Soup.Callbacks: wrap_AuthDomainFilter :: Maybe (Ptr (FunPtr C_AuthDomainFilter)) -> AuthDomainFilter_WithClosures -> C_AuthDomainFilter
- GI.Soup.Callbacks: wrap_AuthDomainGenericAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainGenericAuthCallback)) -> AuthDomainGenericAuthCallback_WithClosures -> Ptr AuthDomain -> Ptr Message -> CString -> Ptr () -> IO CInt
+ GI.Soup.Callbacks: wrap_AuthDomainGenericAuthCallback :: Maybe (Ptr (FunPtr C_AuthDomainGenericAuthCallback)) -> AuthDomainGenericAuthCallback_WithClosures -> C_AuthDomainGenericAuthCallback
- GI.Soup.Callbacks: wrap_ChunkAllocator :: Maybe (Ptr (FunPtr C_ChunkAllocator)) -> ChunkAllocator_WithClosures -> Ptr Message -> Word64 -> Ptr () -> IO (Ptr Buffer)
+ GI.Soup.Callbacks: wrap_ChunkAllocator :: Maybe (Ptr (FunPtr C_ChunkAllocator)) -> ChunkAllocator_WithClosures -> C_ChunkAllocator
- GI.Soup.Callbacks: wrap_LoggerFilter :: Maybe (Ptr (FunPtr C_LoggerFilter)) -> LoggerFilter_WithClosures -> Ptr Logger -> Ptr Message -> Ptr () -> IO CUInt
+ GI.Soup.Callbacks: wrap_LoggerFilter :: Maybe (Ptr (FunPtr C_LoggerFilter)) -> LoggerFilter_WithClosures -> C_LoggerFilter
- GI.Soup.Callbacks: wrap_LoggerPrinter :: Maybe (Ptr (FunPtr C_LoggerPrinter)) -> LoggerPrinter_WithClosures -> Ptr Logger -> CUInt -> Int8 -> CString -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_LoggerPrinter :: Maybe (Ptr (FunPtr C_LoggerPrinter)) -> LoggerPrinter_WithClosures -> C_LoggerPrinter
- GI.Soup.Callbacks: wrap_MessageHeadersForeachFunc :: Maybe (Ptr (FunPtr C_MessageHeadersForeachFunc)) -> MessageHeadersForeachFunc_WithClosures -> CString -> CString -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_MessageHeadersForeachFunc :: Maybe (Ptr (FunPtr C_MessageHeadersForeachFunc)) -> MessageHeadersForeachFunc_WithClosures -> C_MessageHeadersForeachFunc
- GI.Soup.Callbacks: wrap_PasswordManagerCallback :: Maybe (Ptr (FunPtr C_PasswordManagerCallback)) -> PasswordManagerCallback_WithClosures -> Ptr PasswordManager -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_PasswordManagerCallback :: Maybe (Ptr (FunPtr C_PasswordManagerCallback)) -> PasswordManagerCallback_WithClosures -> C_PasswordManagerCallback
- GI.Soup.Callbacks: wrap_ProxyURIResolverCallback :: Maybe (Ptr (FunPtr C_ProxyURIResolverCallback)) -> ProxyURIResolverCallback_WithClosures -> Ptr ProxyURIResolver -> Word32 -> Ptr URI -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_ProxyURIResolverCallback :: Maybe (Ptr (FunPtr C_ProxyURIResolverCallback)) -> ProxyURIResolverCallback_WithClosures -> C_ProxyURIResolverCallback
- GI.Soup.Callbacks: wrap_ServerCallback :: Maybe (Ptr (FunPtr C_ServerCallback)) -> ServerCallback_WithClosures -> Ptr Server -> Ptr Message -> CString -> Ptr (GHashTable CString CString) -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_ServerCallback :: Maybe (Ptr (FunPtr C_ServerCallback)) -> ServerCallback_WithClosures -> C_ServerCallback
- GI.Soup.Callbacks: wrap_ServerWebsocketCallback :: Maybe (Ptr (FunPtr C_ServerWebsocketCallback)) -> ServerWebsocketCallback_WithClosures -> Ptr Server -> Ptr WebsocketConnection -> CString -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_ServerWebsocketCallback :: Maybe (Ptr (FunPtr C_ServerWebsocketCallback)) -> ServerWebsocketCallback_WithClosures -> C_ServerWebsocketCallback
- GI.Soup.Callbacks: wrap_SessionCallback :: Maybe (Ptr (FunPtr C_SessionCallback)) -> SessionCallback_WithClosures -> Ptr Session -> Ptr Message -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_SessionCallback :: Maybe (Ptr (FunPtr C_SessionCallback)) -> SessionCallback_WithClosures -> C_SessionCallback
- GI.Soup.Callbacks: wrap_SocketCallback :: Maybe (Ptr (FunPtr C_SocketCallback)) -> SocketCallback_WithClosures -> Ptr Socket -> Word32 -> Ptr () -> IO ()
+ GI.Soup.Callbacks: wrap_SocketCallback :: Maybe (Ptr (FunPtr C_SocketCallback)) -> SocketCallback_WithClosures -> C_SocketCallback
- GI.Soup.Objects.AuthManager: type AuthManagerAuthenticateCallback = Message -> Auth -> Bool -> IO ()
+ GI.Soup.Objects.AuthManager: type AuthManagerAuthenticateCallback = Message /@msg@/: the 'GI.Soup.Objects.Message.Message' being sent -> Auth /@auth@/: the 'GI.Soup.Objects.Auth.Auth' to authenticate -> Bool /@retrying@/: 'True' if this is the second (or later) attempt -> IO ()
- GI.Soup.Objects.AuthManager: wrap_AuthManagerAuthenticateCallback :: AuthManagerAuthenticateCallback -> Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
+ GI.Soup.Objects.AuthManager: wrap_AuthManagerAuthenticateCallback :: AuthManagerAuthenticateCallback -> C_AuthManagerAuthenticateCallback
- GI.Soup.Objects.Cache: cacheNew :: (HasCallStack, MonadIO m) => Text -> CacheType -> m Cache
+ GI.Soup.Objects.Cache: cacheNew :: (HasCallStack, MonadIO m) => Maybe (Text) -> CacheType -> m Cache
- GI.Soup.Objects.CookieJar: type CookieJarChangedCallback = Cookie -> Cookie -> IO ()
+ GI.Soup.Objects.CookieJar: type CookieJarChangedCallback = Cookie /@oldCookie@/: the old 'GI.Soup.Structs.Cookie.Cookie' value -> Cookie /@newCookie@/: the new 'GI.Soup.Structs.Cookie.Cookie' value -> IO ()
- GI.Soup.Objects.CookieJar: wrap_CookieJarChangedCallback :: CookieJarChangedCallback -> Ptr () -> Ptr Cookie -> Ptr Cookie -> Ptr () -> IO ()
+ GI.Soup.Objects.CookieJar: wrap_CookieJarChangedCallback :: CookieJarChangedCallback -> C_CookieJarChangedCallback
- GI.Soup.Objects.Message: type MessageContentSniffedCallback = Text -> Map Text Text -> IO ()
+ GI.Soup.Objects.Message: type MessageContentSniffedCallback = Text /@type@/: the content type that we got from sniffing -> Map Text Text /@params@/: a 'GI.GLib.Structs.HashTable.HashTable' with the parameters -> IO ()
- GI.Soup.Objects.Message: type MessageGotChunkCallback = Buffer -> IO ()
+ GI.Soup.Objects.Message: type MessageGotChunkCallback = Buffer /@chunk@/: the just-read chunk -> IO ()
- GI.Soup.Objects.Message: type MessageNetworkEventCallback = SocketClientEvent -> IOStream -> IO ()
+ GI.Soup.Objects.Message: type MessageNetworkEventCallback = SocketClientEvent /@event@/: the network event -> IOStream /@connection@/: the current state of the network connection -> IO ()
- GI.Soup.Objects.Message: type MessageWroteBodyDataCallback = Buffer -> IO ()
+ GI.Soup.Objects.Message: type MessageWroteBodyDataCallback = Buffer /@chunk@/: the data written -> IO ()
- GI.Soup.Objects.Message: wrap_MessageContentSniffedCallback :: MessageContentSniffedCallback -> Ptr () -> CString -> Ptr (GHashTable CString CString) -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageContentSniffedCallback :: MessageContentSniffedCallback -> C_MessageContentSniffedCallback
- GI.Soup.Objects.Message: wrap_MessageFinishedCallback :: MessageFinishedCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageFinishedCallback :: MessageFinishedCallback -> C_MessageFinishedCallback
- GI.Soup.Objects.Message: wrap_MessageGotBodyCallback :: MessageGotBodyCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageGotBodyCallback :: MessageGotBodyCallback -> C_MessageGotBodyCallback
- GI.Soup.Objects.Message: wrap_MessageGotChunkCallback :: MessageGotChunkCallback -> Ptr () -> Ptr Buffer -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageGotChunkCallback :: MessageGotChunkCallback -> C_MessageGotChunkCallback
- GI.Soup.Objects.Message: wrap_MessageGotHeadersCallback :: MessageGotHeadersCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageGotHeadersCallback :: MessageGotHeadersCallback -> C_MessageGotHeadersCallback
- GI.Soup.Objects.Message: wrap_MessageGotInformationalCallback :: MessageGotInformationalCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageGotInformationalCallback :: MessageGotInformationalCallback -> C_MessageGotInformationalCallback
- GI.Soup.Objects.Message: wrap_MessageNetworkEventCallback :: MessageNetworkEventCallback -> Ptr () -> CUInt -> Ptr IOStream -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageNetworkEventCallback :: MessageNetworkEventCallback -> C_MessageNetworkEventCallback
- GI.Soup.Objects.Message: wrap_MessageRestartedCallback :: MessageRestartedCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageRestartedCallback :: MessageRestartedCallback -> C_MessageRestartedCallback
- GI.Soup.Objects.Message: wrap_MessageStartingCallback :: MessageStartingCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageStartingCallback :: MessageStartingCallback -> C_MessageStartingCallback
- GI.Soup.Objects.Message: wrap_MessageWroteBodyCallback :: MessageWroteBodyCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageWroteBodyCallback :: MessageWroteBodyCallback -> C_MessageWroteBodyCallback
- GI.Soup.Objects.Message: wrap_MessageWroteBodyDataCallback :: MessageWroteBodyDataCallback -> Ptr () -> Ptr Buffer -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageWroteBodyDataCallback :: MessageWroteBodyDataCallback -> C_MessageWroteBodyDataCallback
- GI.Soup.Objects.Message: wrap_MessageWroteChunkCallback :: MessageWroteChunkCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageWroteChunkCallback :: MessageWroteChunkCallback -> C_MessageWroteChunkCallback
- GI.Soup.Objects.Message: wrap_MessageWroteHeadersCallback :: MessageWroteHeadersCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageWroteHeadersCallback :: MessageWroteHeadersCallback -> C_MessageWroteHeadersCallback
- GI.Soup.Objects.Message: wrap_MessageWroteInformationalCallback :: MessageWroteInformationalCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Message: wrap_MessageWroteInformationalCallback :: MessageWroteInformationalCallback -> C_MessageWroteInformationalCallback
- GI.Soup.Objects.Server: type ServerRequestAbortedCallback = Message -> ClientContext -> IO ()
+ GI.Soup.Objects.Server: type ServerRequestAbortedCallback = Message /@message@/: the message -> ClientContext /@client@/: the client context -> IO ()
- GI.Soup.Objects.Server: type ServerRequestFinishedCallback = Message -> ClientContext -> IO ()
+ GI.Soup.Objects.Server: type ServerRequestFinishedCallback = Message /@message@/: the message -> ClientContext /@client@/: the client context -> IO ()
- GI.Soup.Objects.Server: type ServerRequestReadCallback = Message -> ClientContext -> IO ()
+ GI.Soup.Objects.Server: type ServerRequestReadCallback = Message /@message@/: the message -> ClientContext /@client@/: the client context -> IO ()
- GI.Soup.Objects.Server: type ServerRequestStartedCallback = Message -> ClientContext -> IO ()
+ GI.Soup.Objects.Server: type ServerRequestStartedCallback = Message /@message@/: the new message -> ClientContext /@client@/: the client context -> IO ()
- GI.Soup.Objects.Server: wrap_ServerRequestAbortedCallback :: ServerRequestAbortedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Objects.Server: wrap_ServerRequestAbortedCallback :: ServerRequestAbortedCallback -> C_ServerRequestAbortedCallback
- GI.Soup.Objects.Server: wrap_ServerRequestFinishedCallback :: ServerRequestFinishedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Objects.Server: wrap_ServerRequestFinishedCallback :: ServerRequestFinishedCallback -> C_ServerRequestFinishedCallback
- GI.Soup.Objects.Server: wrap_ServerRequestReadCallback :: ServerRequestReadCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Objects.Server: wrap_ServerRequestReadCallback :: ServerRequestReadCallback -> C_ServerRequestReadCallback
- GI.Soup.Objects.Server: wrap_ServerRequestStartedCallback :: ServerRequestStartedCallback -> Ptr () -> Ptr Message -> Ptr ClientContext -> Ptr () -> IO ()
+ GI.Soup.Objects.Server: wrap_ServerRequestStartedCallback :: ServerRequestStartedCallback -> C_ServerRequestStartedCallback
- GI.Soup.Objects.Session: type SessionAuthenticateCallback = Message -> Auth -> Bool -> IO ()
+ GI.Soup.Objects.Session: type SessionAuthenticateCallback = Message /@msg@/: the 'GI.Soup.Objects.Message.Message' being sent -> Auth /@auth@/: the 'GI.Soup.Objects.Auth.Auth' to authenticate -> Bool /@retrying@/: 'True' if this is the second (or later) attempt -> IO ()
- GI.Soup.Objects.Session: type SessionConnectionCreatedCallback = Object -> IO ()
+ GI.Soup.Objects.Session: type SessionConnectionCreatedCallback = Object /@connection@/: the connection -> IO ()
- GI.Soup.Objects.Session: type SessionRequestQueuedCallback = Message -> IO ()
+ GI.Soup.Objects.Session: type SessionRequestQueuedCallback = Message /@msg@/: the request that was queued -> IO ()
- GI.Soup.Objects.Session: type SessionRequestStartedCallback = Message -> Socket -> IO ()
+ GI.Soup.Objects.Session: type SessionRequestStartedCallback = Message /@msg@/: the request being sent -> Socket /@socket@/: the socket the request is being sent on -> IO ()
- GI.Soup.Objects.Session: type SessionRequestUnqueuedCallback = Message -> IO ()
+ GI.Soup.Objects.Session: type SessionRequestUnqueuedCallback = Message /@msg@/: the request that was unqueued -> IO ()
- GI.Soup.Objects.Session: type SessionTunnelingCallback = Object -> IO ()
+ GI.Soup.Objects.Session: type SessionTunnelingCallback = Object /@connection@/: the connection -> IO ()
- GI.Soup.Objects.Session: wrap_SessionAuthenticateCallback :: SessionAuthenticateCallback -> Ptr () -> Ptr Message -> Ptr Auth -> CInt -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionAuthenticateCallback :: SessionAuthenticateCallback -> C_SessionAuthenticateCallback
- GI.Soup.Objects.Session: wrap_SessionConnectionCreatedCallback :: SessionConnectionCreatedCallback -> Ptr () -> Ptr Object -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionConnectionCreatedCallback :: SessionConnectionCreatedCallback -> C_SessionConnectionCreatedCallback
- GI.Soup.Objects.Session: wrap_SessionRequestQueuedCallback :: SessionRequestQueuedCallback -> Ptr () -> Ptr Message -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionRequestQueuedCallback :: SessionRequestQueuedCallback -> C_SessionRequestQueuedCallback
- GI.Soup.Objects.Session: wrap_SessionRequestStartedCallback :: SessionRequestStartedCallback -> Ptr () -> Ptr Message -> Ptr Socket -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionRequestStartedCallback :: SessionRequestStartedCallback -> C_SessionRequestStartedCallback
- GI.Soup.Objects.Session: wrap_SessionRequestUnqueuedCallback :: SessionRequestUnqueuedCallback -> Ptr () -> Ptr Message -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionRequestUnqueuedCallback :: SessionRequestUnqueuedCallback -> C_SessionRequestUnqueuedCallback
- GI.Soup.Objects.Session: wrap_SessionTunnelingCallback :: SessionTunnelingCallback -> Ptr () -> Ptr Object -> Ptr () -> IO ()
+ GI.Soup.Objects.Session: wrap_SessionTunnelingCallback :: SessionTunnelingCallback -> C_SessionTunnelingCallback
- GI.Soup.Objects.Socket: type SocketEventCallback = SocketClientEvent -> IOStream -> IO ()
+ GI.Soup.Objects.Socket: type SocketEventCallback = SocketClientEvent /@event@/: the event that occurred -> IOStream /@connection@/: the current connection state -> IO ()
- GI.Soup.Objects.Socket: type SocketNewConnectionCallback = Socket -> IO ()
+ GI.Soup.Objects.Socket: type SocketNewConnectionCallback = Socket /@new@/: the new socket -> IO ()
- GI.Soup.Objects.Socket: wrap_SocketDisconnectedCallback :: SocketDisconnectedCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Socket: wrap_SocketDisconnectedCallback :: SocketDisconnectedCallback -> C_SocketDisconnectedCallback
- GI.Soup.Objects.Socket: wrap_SocketEventCallback :: SocketEventCallback -> Ptr () -> CUInt -> Ptr IOStream -> Ptr () -> IO ()
+ GI.Soup.Objects.Socket: wrap_SocketEventCallback :: SocketEventCallback -> C_SocketEventCallback
- GI.Soup.Objects.Socket: wrap_SocketNewConnectionCallback :: SocketNewConnectionCallback -> Ptr () -> Ptr Socket -> Ptr () -> IO ()
+ GI.Soup.Objects.Socket: wrap_SocketNewConnectionCallback :: SocketNewConnectionCallback -> C_SocketNewConnectionCallback
- GI.Soup.Objects.Socket: wrap_SocketReadableCallback :: SocketReadableCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Socket: wrap_SocketReadableCallback :: SocketReadableCallback -> C_SocketReadableCallback
- GI.Soup.Objects.Socket: wrap_SocketWritableCallback :: SocketWritableCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.Socket: wrap_SocketWritableCallback :: SocketWritableCallback -> C_SocketWritableCallback
- GI.Soup.Objects.WebsocketConnection: type WebsocketConnectionErrorCallback = GError -> IO ()
+ GI.Soup.Objects.WebsocketConnection: type WebsocketConnectionErrorCallback = GError /@error@/: the error that occured -> IO ()
- GI.Soup.Objects.WebsocketConnection: type WebsocketConnectionMessageCallback = Int32 -> Bytes -> IO ()
+ GI.Soup.Objects.WebsocketConnection: type WebsocketConnectionMessageCallback = Int32 /@type@/: the type of message contents -> Bytes /@message@/: the message data -> IO ()
- GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionClosedCallback :: WebsocketConnectionClosedCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionClosedCallback :: WebsocketConnectionClosedCallback -> C_WebsocketConnectionClosedCallback
- GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionClosingCallback :: WebsocketConnectionClosingCallback -> Ptr () -> Ptr () -> IO ()
+ GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionClosingCallback :: WebsocketConnectionClosingCallback -> C_WebsocketConnectionClosingCallback
- GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionErrorCallback :: WebsocketConnectionErrorCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
+ GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionErrorCallback :: WebsocketConnectionErrorCallback -> C_WebsocketConnectionErrorCallback
- GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionMessageCallback :: WebsocketConnectionMessageCallback -> Ptr () -> Int32 -> Ptr Bytes -> Ptr () -> IO ()
+ GI.Soup.Objects.WebsocketConnection: wrap_WebsocketConnectionMessageCallback :: WebsocketConnectionMessageCallback -> C_WebsocketConnectionMessageCallback

Files

ChangeLog.md view
@@ -0,0 +1,4 @@+### 2.4.15+++ Remove enable-overloading flags, and use instead explicit CPP checks for 'haskell-gi-overloading-1.0', see [how to disable overloading](https://github.com/haskell-gi/haskell-gi/wiki/Overloading\#disabling-overloading).+
README.md view
@@ -1,6 +1,6 @@ # Documentation Autogenerated documentation for this package can be found at -[https://hackage.haskell.org/package/gi-soup-2.4.14/docs/GI-Soup.html](https://hackage.haskell.org/package/gi-soup-2.4.14/docs/GI-Soup.html)+[https://hackage.haskell.org/package/gi-soup-2.4.15/docs/GI-Soup.html](https://hackage.haskell.org/package/gi-soup-2.4.15/docs/GI-Soup.html)  For general documentation on using [haskell-gi](https://github.com/haskell-gi/haskell-gi) based bindings, see [the project page](https://github.com/haskell-gi/haskell-gi) or [the Wiki](https://github.com/haskell-gi/haskell-gi/wiki).
gi-soup.cabal view
@@ -1,5 +1,5 @@ name:                 gi-soup-version:              2.4.14+version:              2.4.15 synopsis:             Libsoup bindings description:          Bindings for Libsoup, autogenerated by haskell-gi. homepage:             https://github.com/haskell-gi/haskell-gi@@ -16,11 +16,7 @@ custom-setup       setup-depends: base >= 4.7 && < 5,                      Cabal >= 1.24,-                     haskell-gi >= 0.20.1 && < 1--Flag enable-overloading-      Description: Enable support for overloaded labels.-      Default: True+                     haskell-gi == 0.21.*  library       default-language: Haskell2010@@ -28,16 +24,11 @@       other-extensions: PatternSynonyms, ViewPatterns       ghc-options: -fno-warn-unused-imports -fno-warn-warnings-deprecations -      if flag(enable-overloading)-         cpp-options: -DENABLE_OVERLOADING-         build-depends: haskell-gi-overloading == 1.0.*-      else-         build-depends: haskell-gi-overloading == 0.0-       pkgconfig-depends: libsoup-2.4       build-depends: base >= 4.7 && <5,-                     haskell-gi-base >= 0.20 && < 1,-                     haskell-gi >= 0.20.1 && < 1,+                     haskell-gi-base == 0.21.*,+                     haskell-gi == 0.21.*,+                     haskell-gi-overloading < 1.1,                      gi-gio == 2.0.*,                      gi-gobject == 2.0.*,                      gi-glib == 2.0.*,@@ -45,3 +36,8 @@                      containers >= 0.5 && < 1,                      text >= 1.0 && < 2,                      transformers >= 0.4 && < 1++      -- Disable overloading when compiling under GHC 8.2.x+      -- see https://ghc.haskell.org/trac/ghc/ticket/14382+      if impl(ghc == 8.2.*)+              build-depends: haskell-gi-overloading == 0.0
stack.yaml view
@@ -1,5 +1,3 @@ packages: - '.'-explicit-setup-deps:-  ! '*': true-resolver: nightly-2016-12-05+resolver: lts-9.21