ghcjs-dom-0.0.10: DOM library that supports both GHCJS and WebKitGTK

Safe HaskellNone
LanguageHaskell2010

GHCJS.DOM.Types

Synopsis

Documentation

propagateGError :: (Ptr (Ptr ()) -> IO a) -> IO a

Glib functions which report GErrors take as a parameter a GError **error. Use this function to supply such a parameter. It checks if an error was reported and if so throws it as a Haskell exception.

Example of use:

propagateGError $ \gerrorPtr ->
{# call g_some_function_that_might_return_an_error #} a b gerrorPtr

type GType = CULong

type IsCDATASection o = CDATASectionClass o Source

type IsComment o = CommentClass o Source

type IsDocumentFragment o = DocumentFragmentClass o Source

type IsEntityReference o = EntityReferenceClass o Source

type IsEventTarget o = EventTargetClass o Source

type IsHTMLAudioElement o = HTMLAudioElementClass o Source

type IsMessagePort o = MessagePortClass o Source