License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unix |
Safe Haskell | Safe |
Language | Haskell98 |
Synopsis
- data Revision = Revision String [RevModifier]
- data RevModifier
- data RevisionNotFound = RevisionNotFound Revision
- fromString :: IsString a => String -> a
Documentation
A git revision. this can be many things:
* a shorten ref
* a ref
* a named branch or tag
followed by optional modifiers RevModifier
that can represent:
* parenting
* type
* date
Instances
Eq Revision Source # | |
Data Revision Source # | |
Defined in Data.Git.Revision gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Revision -> c Revision # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Revision # toConstr :: Revision -> Constr # dataTypeOf :: Revision -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Revision) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Revision) # gmapT :: (forall b. Data b => b -> b) -> Revision -> Revision # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Revision -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Revision -> r # gmapQ :: (forall d. Data d => d -> u) -> Revision -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Revision -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Revision -> m Revision # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Revision -> m Revision # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Revision -> m Revision # | |
Show Revision Source # | |
IsString Revision Source # | |
Defined in Data.Git.Revision fromString :: String -> Revision # | |
Resolvable Revision Source # | |
data RevModifier Source #
A modifier to a revision, which is a function apply of a revision
RevModParent Int | parent accessor ^n and ^ |
RevModParentFirstN Int | parent accessor ~n |
RevModAtType String | @{type} accessor |
RevModAtDate String | @{date} accessor |
RevModAtN Int | @{n} accessor |
Instances
Eq RevModifier Source # | |
Defined in Data.Git.Revision (==) :: RevModifier -> RevModifier -> Bool # (/=) :: RevModifier -> RevModifier -> Bool # | |
Data RevModifier Source # | |
Defined in Data.Git.Revision gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RevModifier -> c RevModifier # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RevModifier # toConstr :: RevModifier -> Constr # dataTypeOf :: RevModifier -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RevModifier) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RevModifier) # gmapT :: (forall b. Data b => b -> b) -> RevModifier -> RevModifier # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RevModifier -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RevModifier -> r # gmapQ :: (forall d. Data d => d -> u) -> RevModifier -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RevModifier -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RevModifier -> m RevModifier # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RevModifier -> m RevModifier # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RevModifier -> m RevModifier # | |
Show RevModifier Source # | |
Defined in Data.Git.Revision showsPrec :: Int -> RevModifier -> ShowS # show :: RevModifier -> String # showList :: [RevModifier] -> ShowS # |
data RevisionNotFound Source #
Exception when a revision cannot be resolved to a reference
Instances
fromString :: IsString a => String -> a #