Safe Haskell | None |
---|---|
Language | Haskell98 |
Constructible
types are those for which new
is
defined. Often these are GObject
s, but it is possible to
construct new (zero-initialized) structures and unions too.
- class Constructible a tag where
- new :: MonadIO m => (ForeignPtr a -> a) -> [AttrOp a tag] -> m a
Documentation
class Constructible a tag where Source
Constructible types, i.e. those which can be allocated by new
.
new :: MonadIO m => (ForeignPtr a -> a) -> [AttrOp a tag] -> m a Source
(GObject a, (~) AttrOpTag tag AttrConstruct) => Constructible a tag | Default instance, assuming we have a |