| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.CommitParents
Description
Represents the parents of a commit object.
Synopsis
- newtype CommitParents = CommitParents (ManagedPtr CommitParents)
- class (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o
- toCommitParents :: (MonadIO m, IsCommitParents o) => o -> m CommitParents
- noCommitParents :: Maybe CommitParents
- commitParentsGet :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> Word32 -> m (Maybe Commit)
- commitParentsGetId :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> Word32 -> m (Maybe OId)
- commitParentsGetSize :: (HasCallStack, MonadIO m, IsCommitParents a) => a -> m Word32
- commitParentsNew :: (HasCallStack, MonadIO m, IsCommit a) => a -> m CommitParents
- constructCommitParentsCommit :: (IsCommitParents o, IsCommit a) => a -> IO (GValueConstruct o)
- getCommitParentsCommit :: (MonadIO m, IsCommitParents o) => o -> m (Maybe Commit)
- getCommitParentsSize :: (MonadIO m, IsCommitParents o) => o -> m Word32
Exported types
newtype CommitParents Source #
Memory-managed wrapper type.
Constructors
| CommitParents (ManagedPtr CommitParents) |
Instances
| Eq CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents Methods (==) :: CommitParents -> CommitParents -> Bool # (/=) :: CommitParents -> CommitParents -> Bool # | |
| IsGValue CommitParents Source # | Convert |
Defined in GI.Ggit.Objects.CommitParents | |
| GObject CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents Methods gobjectType :: IO GType # | |
| HasParentTypes CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
| type ParentTypes CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
class (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source #
Type class for types which can be safely cast to CommitParents, for instance with toCommitParents.
Instances
| (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
toCommitParents :: (MonadIO m, IsCommitParents o) => o -> m CommitParents Source #
Cast to CommitParents, for types for which this is known to be safe. For general casts, use castTo.
noCommitParents :: Maybe CommitParents Source #
A convenience alias for Nothing :: Maybe CommitParents.
Methods
Overloaded methods
get
Arguments
| :: (HasCallStack, MonadIO m, IsCommitParents a) | |
| => a |
|
| -> Word32 |
|
| -> m (Maybe Commit) | Returns: a |
Get the Commit of a parent.
getId
Arguments
| :: (HasCallStack, MonadIO m, IsCommitParents a) | |
| => a |
|
| -> Word32 |
|
| -> m (Maybe OId) | Returns: a |
Get the OId of a parent.
getSize
Arguments
| :: (HasCallStack, MonadIO m, IsCommitParents a) | |
| => a |
|
| -> m Word32 | Returns: the number of parents. |
Get the number of parents in the parents collection.
new
commitParentsNew :: (HasCallStack, MonadIO m, IsCommit a) => a -> m CommitParents Source #
No description available in the introspection data.
Properties
commit
No description available in the introspection data.
constructCommitParentsCommit :: (IsCommitParents o, IsCommit a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “commit” property. This is rarely needed directly, but it is used by new.
getCommitParentsCommit :: (MonadIO m, IsCommitParents o) => o -> m (Maybe Commit) Source #
Get the value of the “commit” property.
When overloading is enabled, this is equivalent to
get commitParents #commit
size
No description available in the introspection data.
getCommitParentsSize :: (MonadIO m, IsCommitParents o) => o -> m Word32 Source #
Get the value of the “size” property.
When overloading is enabled, this is equivalent to
get commitParents #size