miss-0: A Haskell git implimentation

Safe HaskellNone
LanguageHaskell2010

Data.Git.Types

Description

Utility module that should probably disappear.

Synopsis

Documentation

type Date = (Int, ByteString) Source #

Git dates are seconds-since-the-epoch and a timezone string.

utcTimeToDate :: UTCTime -> Date Source #

Turn a UTCTime into something git can understand.

newtype Mode Source #

File modes from git trees.

Constructors

BareMode Word32 
Instances
Eq Mode Source # 
Instance details

Defined in Data.Git.Types

Methods

(==) :: Mode -> Mode -> Bool #

(/=) :: Mode -> Mode -> Bool #

Ord Mode Source # 
Instance details

Defined in Data.Git.Types

Methods

compare :: Mode -> Mode -> Ordering #

(<) :: Mode -> Mode -> Bool #

(<=) :: Mode -> Mode -> Bool #

(>) :: Mode -> Mode -> Bool #

(>=) :: Mode -> Mode -> Bool #

max :: Mode -> Mode -> Mode #

min :: Mode -> Mode -> Mode #

Show Mode Source # 
Instance details

Defined in Data.Git.Types

Methods

showsPrec :: Int -> Mode -> ShowS #

show :: Mode -> String #

showList :: [Mode] -> ShowS #

pattern BlobMode :: Mode Source #

The mode of a non-executable file in git.

pattern ExecMode :: Mode Source #

The mode of an executable file in git.

pattern TreeMode :: Mode Source #

The mode of a directory in git.

pattern LinkMode :: Mode Source #

The mode of a symbolic link in git.

pattern SubmMode :: Mode Source #

The mode that represents a submodule in git.

data Contact Source #

Author and Committer data in commit messages.

Constructors

Contact 
Instances
Eq Contact Source # 
Instance details

Defined in Data.Git.Types

Methods

(==) :: Contact -> Contact -> Bool #

(/=) :: Contact -> Contact -> Bool #

Ord Contact Source # 
Instance details

Defined in Data.Git.Types

Show Contact Source # 
Instance details

Defined in Data.Git.Types

makeContact :: ByteString -> ByteString -> Contact Source #

Make a Contact or explode trying.

makeContact' :: ByteString -> ByteString -> Maybe Contact Source #

Try to make a Contact. Gives Nothing when safeString fails on either argument.

data GitT m a Source #

A Git monad transformer that writes loose objects.

Instances
MonadTrans GitT Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

lift :: Monad m => m a -> GitT m a #

Monad m => MonadState GitConf (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

get :: GitT m GitConf #

put :: GitConf -> GitT m () #

state :: (GitConf -> (a, GitConf)) -> GitT m a #

Monad m => Monad (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

(>>=) :: GitT m a -> (a -> GitT m b) -> GitT m b #

(>>) :: GitT m a -> GitT m b -> GitT m b #

return :: a -> GitT m a #

fail :: String -> GitT m a #

Functor m => Functor (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

fmap :: (a -> b) -> GitT m a -> GitT m b #

(<$) :: a -> GitT m b -> GitT m a #

MonadFail m => MonadFail (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

fail :: String -> GitT m a #

Monad m => Applicative (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

pure :: a -> GitT m a #

(<*>) :: GitT m (a -> b) -> GitT m a -> GitT m b #

liftA2 :: (a -> b -> c) -> GitT m a -> GitT m b -> GitT m c #

(*>) :: GitT m a -> GitT m b -> GitT m b #

(<*) :: GitT m a -> GitT m b -> GitT m a #

MonadIO m => MonadIO (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

liftIO :: IO a -> GitT m a #

MonadCatch m => MonadCatch (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

catch :: Exception e => GitT m a -> (e -> GitT m a) -> GitT m a

MonadThrow m => MonadThrow (GitT m) Source # 
Instance details

Defined in Data.Git.Internal.Types

Methods

throwM :: Exception e => e -> GitT m a

MonadIO m => MonadGit (GitT m) Source #

A concrete MonadGit instance writing loose objects.

Instance details

Defined in Data.Git.Monad

type Git a = GitT IO a Source #

A convenient version of GitT.