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 |
Represents a note object.
Synopsis
- newtype Note = Note (ManagedPtr Note)
- noteGetId :: (HasCallStack, MonadIO m) => Note -> m (Maybe OId)
- noteGetMessage :: (HasCallStack, MonadIO m) => Note -> m (Maybe Text)
- noteRef :: (HasCallStack, MonadIO m) => Note -> m (Maybe Note)
- noteUnref :: (HasCallStack, MonadIO m) => Note -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Note Source # | |
GBoxed Note Source # | |
Defined in GI.Ggit.Structs.Note | |
ManagedPtrNewtype Note Source # | |
Defined in GI.Ggit.Structs.Note toManagedPtr :: Note -> ManagedPtr Note # | |
TypedObject Note Source # | |
Defined in GI.Ggit.Structs.Note | |
HasParentTypes Note Source # | |
Defined in GI.Ggit.Structs.Note | |
IsGValue (Maybe Note) Source # | Convert |
Defined in GI.Ggit.Structs.Note | |
type ParentTypes Note Source # | |
Defined in GI.Ggit.Structs.Note |
Methods
Click to display all available methods, including inherited ones
getId
:: (HasCallStack, MonadIO m) | |
=> Note |
|
-> m (Maybe OId) | Returns: the object's id or |
Gets the note object's id.
getMessage
:: (HasCallStack, MonadIO m) | |
=> Note |
|
-> m (Maybe Text) | Returns: the note message or |
Gets the note message.
ref
Atomically increments the reference count of note
by one.
This function is MT-safe and may be called from any thread.