haskell-gi-base-0.18: Foundation for libraries generated by haskell-gi

Safe HaskellNone
LanguageHaskell98

Data.GI.Base.Constructible

Description

Constructible types are those for which new is defined. Often these are GObjects, but it is possible to construct new (zero-initialized) structures and unions too.

Synopsis

Documentation

class Constructible a tag where Source #

Constructible types, i.e. those which can be allocated by new.

Minimal complete definition

new

Methods

new :: MonadIO m => (ForeignPtr a -> a) -> [AttrOp a tag] -> m a Source #

Instances

(GObject a, (~) AttrOpTag tag AttrConstruct) => Constructible a tag Source #

Default instance, assuming we have a GObject.

Methods

new :: MonadIO m => (ForeignPtr a -> a) -> [AttrOp a tag] -> m a Source #