Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type C_ParseErrorFunc = Ptr ParseLocation -> Ptr ParseLocation -> Ptr GError -> Ptr () -> IO ()
- type ParseErrorFunc = ParseLocation -> ParseLocation -> GError -> IO ()
- type ParseErrorFunc_WithClosures = ParseLocation -> ParseLocation -> GError -> Ptr () -> IO ()
- drop_closures_ParseErrorFunc :: ParseErrorFunc -> ParseErrorFunc_WithClosures
- dynamic_ParseErrorFunc :: (HasCallStack, MonadIO m) => FunPtr C_ParseErrorFunc -> ParseLocation -> ParseLocation -> GError -> Ptr () -> m ()
- genClosure_ParseErrorFunc :: MonadIO m => ParseErrorFunc -> m (GClosure C_ParseErrorFunc)
- mk_ParseErrorFunc :: C_ParseErrorFunc -> IO (FunPtr C_ParseErrorFunc)
- noParseErrorFunc :: Maybe ParseErrorFunc
- noParseErrorFunc_WithClosures :: Maybe ParseErrorFunc_WithClosures
- wrap_ParseErrorFunc :: Maybe (Ptr (FunPtr C_ParseErrorFunc)) -> ParseErrorFunc_WithClosures -> C_ParseErrorFunc
Signals
ParseErrorFunc
type C_ParseErrorFunc = Ptr ParseLocation -> Ptr ParseLocation -> Ptr GError -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type ParseErrorFunc Source #
= ParseLocation |
|
-> ParseLocation |
|
-> GError |
|
-> IO () |
Type of callback that is called when an error occurs during node deserialization.
type ParseErrorFunc_WithClosures Source #
= ParseLocation |
|
-> ParseLocation |
|
-> GError |
|
-> Ptr () |
|
-> IO () |
Type of callback that is called when an error occurs during node deserialization.
drop_closures_ParseErrorFunc :: ParseErrorFunc -> ParseErrorFunc_WithClosures Source #
A simple wrapper that ignores the closure arguments.
dynamic_ParseErrorFunc Source #
:: (HasCallStack, MonadIO m) | |
=> FunPtr C_ParseErrorFunc | |
-> ParseLocation |
|
-> ParseLocation |
|
-> GError |
|
-> Ptr () |
|
-> m () |
Given a pointer to a foreign C function, wrap it into a function callable from Haskell.
genClosure_ParseErrorFunc :: MonadIO m => ParseErrorFunc -> m (GClosure C_ParseErrorFunc) Source #
Wrap the callback into a GClosure
.
mk_ParseErrorFunc :: C_ParseErrorFunc -> IO (FunPtr C_ParseErrorFunc) Source #
Generate a function pointer callable from C code, from a C_ParseErrorFunc
.
noParseErrorFunc :: Maybe ParseErrorFunc Source #
A convenience synonym for
.Nothing
:: Maybe
ParseErrorFunc
noParseErrorFunc_WithClosures :: Maybe ParseErrorFunc_WithClosures Source #
A convenience synonym for
.Nothing
:: Maybe
ParseErrorFunc_WithClosures
wrap_ParseErrorFunc :: Maybe (Ptr (FunPtr C_ParseErrorFunc)) -> ParseErrorFunc_WithClosures -> C_ParseErrorFunc Source #
Wrap a ParseErrorFunc
into a C_ParseErrorFunc
.