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 the parents of a commit object.
Synopsis
- newtype CommitParents = CommitParents (ManagedPtr CommitParents)
- class GObject 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.
Instances
GObject CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents gobjectType :: CommitParents -> IO GType # | |
IsObject CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
IsCommitParents CommitParents Source # | |
Defined in GI.Ggit.Objects.CommitParents |
class GObject o => IsCommitParents o Source #
Type class for types which can be safely cast to CommitParents
, for instance with toCommitParents
.
Instances
(GObject a, (UnknownAncestorError CommitParents a :: Constraint)) => IsCommitParents a Source # | |
Defined in GI.Ggit.Objects.CommitParents | |
IsCommitParents CommitParents 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
get
:: (HasCallStack, MonadIO m, IsCommitParents a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe Commit) | Returns: a |
Get the Commit
of a parent.
getId
:: (HasCallStack, MonadIO m, IsCommitParents a) | |
=> a |
|
-> Word32 |
|
-> m (Maybe OId) | Returns: a |
Get the OId
of a parent.
getSize
:: (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