Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a note object.
Synopsis
- newtype Note = Note (ManagedPtr Note)
- noNote :: Maybe 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
BoxedObject Note Source # | |
Methods
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.