/usr/share/doc/libghc-gitlib-doc/html/gitlib.txt is in libghc-gitlib-doc 2.2.0.0-1build3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 | -- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | API library for working with Git repositories
--
-- <tt>gitlib</tt> is a high-level, lazy and conduit-aware set of
-- abstractions for programming with Git types. Several different
-- backends are available, including one for the libgit2 C library
-- (<a>http://libgit2.github.com</a>) (see <tt>gitlib-libgit2</tt>). The
-- aim is both type-safety and convenience of use for Haskell users,
-- combined with high performance and minimal memory footprint by taking
-- advantage of Haskell's laziness and the conduit library's
-- deterministic resource cleanup.
--
-- For further information, as well as typical use cases, see
-- <a>Git.Tutorial</a>.
@package gitlib
@version 2.2.0.0
-- | This module provides a brief introductory tutorial in the
-- "Introduction" section followed by a lengthy discussion of the
-- library's design and idioms.
module Git.Tutorial
module Git.Types
type RawFilePath = ByteString
data RepositoryFacts
RepositoryFacts :: !Bool -> RepositoryFacts
hasSymbolicReferences :: RepositoryFacts -> !Bool
type MonadGit m = (Failure GitException m, Applicative m, MonadIO m, MonadBaseControl IO m)
type RefName = Text
type CommitAuthor = Text
type CommitEmail = Text
type CommitMessage = Text
type TreeFilePath = RawFilePath
-- | <a>Repository</a> is the central point of contact between user code
-- and Git data objects. Every object must belong to some repository.
class (Applicative m, Monad m, Failure GitException m, IsOid (Oid m)) => Repository m where type family Oid m :: * data family Tree m :: * data family Options m :: *
facts :: Repository m => m RepositoryFacts
parseOid :: Repository m => Text -> m (Oid m)
deleteRepository :: Repository m => m ()
createReference :: Repository m => RefName -> RefTarget m -> m ()
lookupReference :: Repository m => RefName -> m (Maybe (RefTarget m))
updateReference :: Repository m => RefName -> RefTarget m -> m ()
deleteReference :: Repository m => RefName -> m ()
listReferences :: Repository m => m [RefName]
lookupCommit :: Repository m => CommitOid m -> m (Commit m)
lookupTree :: Repository m => TreeOid m -> m (Tree m)
lookupBlob :: Repository m => BlobOid m -> m (Blob m)
lookupTag :: Repository m => TagOid m -> m (Tag m)
lookupObject :: Repository m => Oid m -> m (Object m)
existsObject :: Repository m => Oid m -> m Bool
sourceObjects :: Repository m => Maybe (CommitOid m) -> CommitOid m -> Bool -> Producer m (ObjectOid m)
newTreeBuilder :: Repository m => Maybe (Tree m) -> m (TreeBuilder m)
treeOid :: Repository m => Tree m -> TreeOid m
treeEntry :: Repository m => Tree m -> TreeFilePath -> m (Maybe (TreeEntry m))
listTreeEntries :: Repository m => Tree m -> m [(TreeFilePath, TreeEntry m)]
diffContentsWithTree :: Repository m => Source m (Either TreeFilePath ByteString) -> Tree m -> Producer m ByteString
hashContents :: Repository m => BlobContents m -> m (BlobOid m)
createBlob :: Repository m => BlobContents m -> m (BlobOid m)
createCommit :: Repository m => [CommitOid m] -> TreeOid m -> Signature -> Signature -> CommitMessage -> Maybe RefName -> m (Commit m)
createTag :: Repository m => CommitOid m -> Signature -> CommitMessage -> Text -> m (Tag m)
data RepositoryOptions
RepositoryOptions :: !FilePath -> !Bool -> !Bool -> RepositoryOptions
repoPath :: RepositoryOptions -> !FilePath
repoIsBare :: RepositoryOptions -> !Bool
repoAutoCreate :: RepositoryOptions -> !Bool
data RepositoryFactory t m c
RepositoryFactory :: (RepositoryOptions -> m c) -> (forall a. c -> t a -> m a) -> (c -> m ()) -> t c -> !RepositoryOptions -> m () -> m () -> RepositoryFactory t m c
openRepository :: RepositoryFactory t m c -> RepositoryOptions -> m c
runRepository :: RepositoryFactory t m c -> forall a. c -> t a -> m a
closeRepository :: RepositoryFactory t m c -> c -> m ()
getRepository :: RepositoryFactory t m c -> t c
defaultOptions :: RepositoryFactory t m c -> !RepositoryOptions
startupBackend :: RepositoryFactory t m c -> m ()
shutdownBackend :: RepositoryFactory t m c -> m ()
class (Eq o, Ord o, Show o) => IsOid o where renderOid = renderObjOid . Tagged renderObjOid = renderOid . untag
renderOid :: IsOid o => o -> Text
renderObjOid :: IsOid o => Tagged a o -> Text
type BlobOid m = Tagged (Blob m) (Oid m)
type TreeOid m = Tagged (Tree m) (Oid m)
type CommitOid m = Tagged (Commit m) (Oid m)
type TagOid m = Tagged (Tag m) (Oid m)
data ObjectOid m
BlobObjOid :: !(BlobOid m) -> ObjectOid m
TreeObjOid :: !(TreeOid m) -> ObjectOid m
CommitObjOid :: !(CommitOid m) -> ObjectOid m
TagObjOid :: !(TagOid m) -> ObjectOid m
parseObjOid :: Repository m => forall o. Text -> m (Tagged o (Oid m))
copyOid :: (Repository m, Repository n) => Oid m -> n (Oid n)
newtype SHA
SHA :: ByteString -> SHA
getSHA :: SHA -> ByteString
shaToText :: SHA -> Text
textToSha :: Monad m => Text -> m SHA
data Blob m
Blob :: !(BlobOid m) -> !(BlobContents m) -> Blob m
blobOid :: Blob m -> !(BlobOid m)
blobContents :: Blob m -> !(BlobContents m)
type ByteSource m = Producer m ByteString
data BlobContents m
BlobString :: !ByteString -> BlobContents m
BlobStream :: !(ByteSource m) -> BlobContents m
BlobSizedStream :: !(ByteSource m) -> !Int -> BlobContents m
data BlobKind
PlainBlob :: BlobKind
ExecutableBlob :: BlobKind
SymlinkBlob :: BlobKind
UnknownBlob :: BlobKind
data TreeEntry m
BlobEntry :: !(BlobOid m) -> !BlobKind -> TreeEntry m
blobEntryOid :: TreeEntry m -> !(BlobOid m)
blobEntryKind :: TreeEntry m -> !BlobKind
TreeEntry :: !(TreeOid m) -> TreeEntry m
treeEntryOid :: TreeEntry m -> !(TreeOid m)
CommitEntry :: !(CommitOid m) -> TreeEntry m
commitEntryOid :: TreeEntry m -> !(CommitOid m)
treeEntryToOid :: Repository m => TreeEntry m -> Oid m
data TreeBuilder m
TreeBuilder :: Maybe (TreeOid m) -> HashMap TreeFilePath (TreeBuilder m) -> (Maybe (Tree m) -> m (TreeBuilder m)) -> (TreeBuilder m -> m (ModifiedBuilder m, TreeOid m)) -> (TreeFilePath -> m (Maybe (TreeEntry m))) -> m Int -> (TreeBuilder m -> TreeFilePath -> TreeEntry m -> m (ModifiedBuilder m)) -> (TreeBuilder m -> TreeFilePath -> m (ModifiedBuilder m)) -> TreeBuilder m
mtbBaseTreeOid :: TreeBuilder m -> Maybe (TreeOid m)
mtbPendingUpdates :: TreeBuilder m -> HashMap TreeFilePath (TreeBuilder m)
mtbNewBuilder :: TreeBuilder m -> Maybe (Tree m) -> m (TreeBuilder m)
mtbWriteContents :: TreeBuilder m -> TreeBuilder m -> m (ModifiedBuilder m, TreeOid m)
mtbLookupEntry :: TreeBuilder m -> TreeFilePath -> m (Maybe (TreeEntry m))
mtbEntryCount :: TreeBuilder m -> m Int
mtbPutEntry :: TreeBuilder m -> TreeBuilder m -> TreeFilePath -> TreeEntry m -> m (ModifiedBuilder m)
mtbDropEntry :: TreeBuilder m -> TreeBuilder m -> TreeFilePath -> m (ModifiedBuilder m)
data ModifiedBuilder m
ModifiedBuilder :: (TreeBuilder m) -> ModifiedBuilder m
BuilderUnchanged :: (TreeBuilder m) -> ModifiedBuilder m
fromBuilderMod :: ModifiedBuilder m -> TreeBuilder m
data Commit m
Commit :: !(CommitOid m) -> ![CommitOid m] -> !(TreeOid m) -> !Signature -> !Signature -> !CommitMessage -> !Text -> Commit m
commitOid :: Commit m -> !(CommitOid m)
commitParents :: Commit m -> ![CommitOid m]
commitTree :: Commit m -> !(TreeOid m)
commitAuthor :: Commit m -> !Signature
commitCommitter :: Commit m -> !Signature
commitLog :: Commit m -> !CommitMessage
commitEncoding :: Commit m -> !Text
lookupCommitParents :: Repository m => Commit m -> m [Commit m]
data Signature
Signature :: !CommitAuthor -> !CommitEmail -> !ZonedTime -> Signature
signatureName :: Signature -> !CommitAuthor
signatureEmail :: Signature -> !CommitEmail
signatureWhen :: Signature -> !ZonedTime
data Tag m
Tag :: !(TagOid m) -> !(CommitOid m) -> Tag m
tagOid :: Tag m -> !(TagOid m)
tagCommit :: Tag m -> !(CommitOid m)
data Object m
BlobObj :: !(Blob m) -> Object m
TreeObj :: !(Tree m) -> Object m
CommitObj :: !(Commit m) -> Object m
TagObj :: !(Tag m) -> Object m
objectOid :: Repository m => Object m -> Oid m
loadObject :: Repository m => ObjectOid m -> m (Object m)
objectToObjOid :: Repository m => Object m -> ObjectOid m
untagObjOid :: Repository m => ObjectOid m -> Oid m
data RefTarget m
RefObj :: !(Oid m) -> RefTarget m
RefSymbolic :: !RefName -> RefTarget m
commitRefTarget :: Commit m -> RefTarget m
data ModificationKind
Unchanged :: ModificationKind
Modified :: ModificationKind
Added :: ModificationKind
Deleted :: ModificationKind
TypeChanged :: ModificationKind
data MergeStatus
NoConflict :: MergeStatus
BothModified :: MergeStatus
LeftModifiedRightDeleted :: MergeStatus
LeftDeletedRightModified :: MergeStatus
BothAdded :: MergeStatus
LeftModifiedRightTypeChanged :: MergeStatus
LeftTypeChangedRightModified :: MergeStatus
LeftDeletedRightTypeChanged :: MergeStatus
LeftTypeChangedRightDeleted :: MergeStatus
BothTypeChanged :: MergeStatus
mergeStatus :: ModificationKind -> ModificationKind -> MergeStatus
data MergeResult m
MergeSuccess :: CommitOid m -> MergeResult m
mergeCommit :: MergeResult m -> CommitOid m
MergeConflicted :: CommitOid m -> CommitOid m -> CommitOid m -> Map TreeFilePath (ModificationKind, ModificationKind) -> MergeResult m
mergeCommit :: MergeResult m -> CommitOid m
mergeHeadLeft :: MergeResult m -> CommitOid m
mergeHeadRight :: MergeResult m -> CommitOid m
mergeConflicts :: MergeResult m -> Map TreeFilePath (ModificationKind, ModificationKind)
copyMergeResult :: (Repository m, MonadGit m, Repository n, MonadGit n) => MergeResult m -> n (MergeResult n)
-- | There is a separate <a>GitException</a> for each possible failure when
-- interacting with the Git repository.
data GitException
BackendError :: Text -> GitException
GitError :: Text -> GitException
RepositoryNotExist :: GitException
RepositoryInvalid :: GitException
RepositoryCannotAccess :: Text -> GitException
BlobCreateFailed :: Text -> GitException
BlobEmptyCreateFailed :: GitException
BlobEncodingUnknown :: Text -> GitException
BlobLookupFailed :: GitException
DiffBlobFailed :: Text -> GitException
DiffPrintToPatchFailed :: Text -> GitException
DiffTreeToIndexFailed :: Text -> GitException
IndexAddFailed :: TreeFilePath -> Text -> GitException
IndexCreateFailed :: Text -> GitException
PushNotFastForward :: Text -> GitException
TranslationException :: Text -> GitException
TreeCreateFailed :: Text -> GitException
TreeBuilderCreateFailed :: GitException
TreeBuilderInsertFailed :: TreeFilePath -> GitException
TreeBuilderRemoveFailed :: TreeFilePath -> GitException
TreeBuilderWriteFailed :: Text -> GitException
TreeLookupFailed :: GitException
TreeCannotTraverseBlob :: GitException
TreeCannotTraverseCommit :: GitException
TreeEntryLookupFailed :: TreeFilePath -> GitException
TreeUpdateFailed :: GitException
TreeWalkFailed :: GitException
TreeEmptyCreateFailed :: GitException
CommitCreateFailed :: GitException
CommitLookupFailed :: Text -> GitException
ReferenceCreateFailed :: RefName -> GitException
ReferenceDeleteFailed :: RefName -> GitException
RefCannotCreateFromPartialOid :: GitException
ReferenceListingFailed :: GitException
ReferenceLookupFailed :: RefName -> GitException
ObjectLookupFailed :: Text -> Int -> GitException
ObjectRefRequiresFullOid :: GitException
OidCopyFailed :: GitException
OidParseFailed :: Text -> GitException
QuotaHardLimitExceeded :: Int -> Int -> GitException
instance Typeable GitException
instance Show RepositoryFacts
instance Eq SHA
instance Ord SHA
instance Read SHA
instance Show BlobKind
instance Eq BlobKind
instance Enum BlobKind
instance Show Signature
instance Eq ModificationKind
instance Ord ModificationKind
instance Enum ModificationKind
instance Show ModificationKind
instance Read ModificationKind
instance Eq MergeStatus
instance Ord MergeStatus
instance Enum MergeStatus
instance Show MergeStatus
instance Read MergeStatus
instance Eq GitException
instance Show GitException
instance Exception GitException
instance Repository m => Show (MergeResult m)
instance Repository m => Show (RefTarget m)
instance Default Signature
instance Monoid (ModifiedBuilder m)
instance Repository m => Show (TreeEntry m)
instance Eq (BlobContents m)
instance Hashable SHA
instance Binary SHA
instance Show SHA
instance IsOid SHA
instance Default RepositoryOptions
module Git.Tree.Builder
data TreeT m a
data TreeBuilder m
TreeBuilder :: Maybe (TreeOid m) -> HashMap TreeFilePath (TreeBuilder m) -> (Maybe (Tree m) -> m (TreeBuilder m)) -> (TreeBuilder m -> m (ModifiedBuilder m, TreeOid m)) -> (TreeFilePath -> m (Maybe (TreeEntry m))) -> m Int -> (TreeBuilder m -> TreeFilePath -> TreeEntry m -> m (ModifiedBuilder m)) -> (TreeBuilder m -> TreeFilePath -> m (ModifiedBuilder m)) -> TreeBuilder m
mtbBaseTreeOid :: TreeBuilder m -> Maybe (TreeOid m)
mtbPendingUpdates :: TreeBuilder m -> HashMap TreeFilePath (TreeBuilder m)
mtbNewBuilder :: TreeBuilder m -> Maybe (Tree m) -> m (TreeBuilder m)
mtbWriteContents :: TreeBuilder m -> TreeBuilder m -> m (ModifiedBuilder m, TreeOid m)
mtbLookupEntry :: TreeBuilder m -> TreeFilePath -> m (Maybe (TreeEntry m))
mtbEntryCount :: TreeBuilder m -> m Int
mtbPutEntry :: TreeBuilder m -> TreeBuilder m -> TreeFilePath -> TreeEntry m -> m (ModifiedBuilder m)
mtbDropEntry :: TreeBuilder m -> TreeBuilder m -> TreeFilePath -> m (ModifiedBuilder m)
data ModifiedBuilder m
ModifiedBuilder :: (TreeBuilder m) -> ModifiedBuilder m
BuilderUnchanged :: (TreeBuilder m) -> ModifiedBuilder m
createTree :: Repository m => TreeT m a -> m (TreeOid m)
withNewTree :: Repository m => TreeT m a -> m (a, TreeOid m)
mutateTree :: Repository m => Tree m -> TreeT m a -> m (TreeOid m)
mutateTreeOid :: Repository m => TreeOid m -> TreeT m a -> m (TreeOid m)
currentTree :: Repository m => TreeT m (Tree m)
currentTreeOid :: Repository m => TreeT m (TreeOid m)
withTree :: Repository m => Tree m -> TreeT m a -> m (a, TreeOid m)
withTreeOid :: Repository m => TreeOid m -> TreeT m a -> m (a, TreeOid m)
dropEntry :: Repository m => TreeFilePath -> TreeT m ()
getEntry :: Repository m => TreeFilePath -> TreeT m (Maybe (TreeEntry m))
putBlob :: Repository m => TreeFilePath -> BlobOid m -> TreeT m ()
putBlob' :: Repository m => TreeFilePath -> BlobOid m -> BlobKind -> TreeT m ()
putCommit :: Repository m => TreeFilePath -> CommitOid m -> TreeT m ()
putEntry :: Repository m => TreeFilePath -> TreeEntry m -> TreeT m ()
putTree :: Repository m => TreeFilePath -> TreeOid m -> TreeT m ()
treeEntry :: Repository m => Tree m -> TreeFilePath -> m (Maybe (TreeEntry m))
data ModifyTreeResult m
TreeEntryNotFound :: ModifyTreeResult m
TreeEntryDeleted :: ModifyTreeResult m
TreeEntryPersistent :: (TreeEntry m) -> ModifyTreeResult m
TreeEntryMutated :: (TreeEntry m) -> ModifyTreeResult m
fromModifyTreeResult :: ModifyTreeResult m -> Maybe (TreeEntry m)
toModifyTreeResult :: (TreeEntry m -> ModifyTreeResult m) -> Maybe (TreeEntry m) -> ModifyTreeResult m
emptyTreeId :: Text
instance Eq BuilderAction
instance Show BuilderAction
instance MonadIO m => MonadIO (TreeT m)
instance MonadTrans TreeT
instance MonadFix m => MonadFix (TreeT m)
instance MonadPlus m => MonadPlus (TreeT m)
instance (Functor m, MonadPlus m) => Alternative (TreeT m)
instance (Functor m, Monad m) => Applicative (TreeT m)
instance Monad m => Monad (TreeT m)
instance Functor m => Functor (TreeT m)
module Git.Repository
withNewRepository :: (Repository t, MonadGit t, MonadBaseControl IO m, MonadIO m) => RepositoryFactory t m c -> FilePath -> t a -> m a
withNewRepository' :: (Repository t, MonadGit t, MonadBaseControl IO m, MonadIO m) => RepositoryFactory t m c -> FilePath -> t a -> m a
withBackendDo :: (MonadIO m, MonadBaseControl IO m) => RepositoryFactory t m a -> m b -> m b
withRepository' :: (Repository t, MonadBaseControl IO m, MonadIO m) => RepositoryFactory t m c -> RepositoryOptions -> t a -> m a
withRepository :: (Repository t, MonadBaseControl IO m, MonadIO m) => RepositoryFactory t m c -> FilePath -> t a -> m a
module Git.Reference
resolveReference :: Repository m => RefName -> m (Maybe (Oid m))
referenceToOid :: Repository m => RefTarget m -> m (Maybe (Oid m))
module Git.Object
listObjects :: Repository m => Maybe (CommitOid m) -> CommitOid m -> Bool -> m [ObjectOid m]
traverseObjects :: Repository m => (ObjectOid m -> m a) -> CommitOid m -> m [a]
traverseObjects_ :: Repository m => (ObjectOid m -> m ()) -> CommitOid m -> m ()
-- | Given a list of objects (commit and top-level trees) return by
-- <a>listObjects</a>, expand it to include all subtrees and blobs as
-- well. Ordering is preserved.
expandTreeObjects :: Repository m => Conduit (ObjectOid m) m (ObjectOid m)
listAllObjects :: Repository m => Maybe (CommitOid m) -> CommitOid m -> m [ObjectOid m]
module Git.Blob
createBlobUtf8 :: Repository m => Text -> m (BlobOid m)
catBlob :: Repository m => BlobOid m -> m ByteString
catBlobUtf8 :: Repository m => BlobOid m -> m Text
blobContentsToByteString :: Repository m => BlobContents m -> m ByteString
blobToByteString :: Repository m => Blob m -> m ByteString
treeBlobEntries :: Repository m => Tree m -> m [(TreeFilePath, BlobOid m, BlobKind)]
copyBlob :: (Repository m, Repository (t m), MonadTrans t) => BlobOid m -> HashSet Text -> t m (BlobOid (t m), HashSet Text)
module Git.Tree
copyTreeEntry :: (Repository m, Repository (t m), MonadTrans t) => TreeEntry m -> HashSet Text -> t m (TreeEntry (t m), HashSet Text)
copyTree :: (Repository m, Repository (t m), MonadTrans t) => TreeOid m -> HashSet Text -> t m (TreeOid (t m), HashSet Text)
module Git.Commit
commitTreeEntry :: Repository m => Commit m -> TreeFilePath -> m (Maybe (TreeEntry m))
copyCommitOid :: (Repository m, Repository n) => CommitOid m -> n (CommitOid n)
copyCommit :: (Repository m, Repository (t m), MonadTrans t) => CommitOid m -> Maybe RefName -> HashSet Text -> t m (CommitOid (t m), HashSet Text)
listCommits :: Repository m => Maybe (CommitOid m) -> CommitOid m -> m [CommitOid m]
traverseCommits :: Repository m => (CommitOid m -> m a) -> CommitOid m -> m [a]
traverseCommits_ :: Repository m => (CommitOid m -> m ()) -> CommitOid m -> m ()
module Git.Commit.Push
-- | Fast-forward push a reference between repositories using a recursive
-- copy. This can be extremely slow, but always works no matter which two
-- backends are being used. It should be considered a matter of last
-- resort, or for objects sets that are known to be small.
pushCommit :: (Repository m, Repository (t m), MonadTrans t) => CommitOid m -> Text -> t m (CommitOid (t m))
-- | Interface for working with Git repositories.
module Git
module Git.Tree.Builder.Pure
type EntryHashMap m = HashMap TreeFilePath (TreeEntry m)
-- | Create a new, empty tree.
--
-- Since empty trees cannot exist in Git, attempting to write out an
-- empty tree is a no-op.
newPureTreeBuilder :: Repository m => (Tree m -> m (EntryHashMap m)) -> (EntryHashMap m -> m (TreeOid m)) -> Maybe (Tree m) -> m (TreeBuilder m)
|