Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents a tag object.
Synopsis
- newtype Tag = Tag (ManagedPtr Tag)
- class (GObject o, IsDescendantOf Tag o) => IsTag o
- toTag :: (MonadIO m, IsTag o) => o -> m Tag
- noTag :: Maybe Tag
- tagGetMessage :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetName :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Text)
- tagGetTagger :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Signature)
- tagGetTarget :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
- tagGetTargetId :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe OId)
- tagGetTargetType :: (HasCallStack, MonadIO m, IsTag a) => a -> m GType
- tagPeel :: (HasCallStack, MonadIO m, IsTag a) => a -> m (Maybe Object)
Exported types
Memory-managed wrapper type.
Tag (ManagedPtr Tag) |
Instances
GObject Tag Source # | |
Defined in GI.Ggit.Objects.Tag gobjectType :: IO GType # | |
HasParentTypes Tag Source # | |
Defined in GI.Ggit.Objects.Tag | |
type ParentTypes Tag Source # | |
Defined in GI.Ggit.Objects.Tag |
class (GObject o, IsDescendantOf Tag o) => IsTag o Source #
Instances
(GObject o, IsDescendantOf Tag o) => IsTag o Source # | |
Defined in GI.Ggit.Objects.Tag |
Methods
getMessage
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the message of the tag or |
Gets the message of tag
.
getName
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of the tag or |
Gets the name of tag
.
getTagger
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Signature) | Returns: the tagger (author) of the tag or |
Get the tagger (author) of tag
. The returned value must be free with
objectUnref
.
getTarget
:: (HasCallStack, MonadIO m, IsTag a) | |
=> a |
|
-> m (Maybe Object) | Returns: the target |
Gets the target Object
of tag
.
This method performs a repository lookup for the given object and returns it.
getTargetId
getTargetType
Get the target object type.