packages feed

git 0.2.1 → 0.2.2

raw patch · 2 files changed

+22/−26 lines, 2 filesdep +basementdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: basement

Dependency ranges changed: base

API changes (from Hackage documentation)

- Data.Git: data Blob hash
- Data.Git: data Tree hash
- Data.Git.Types: data Blob hash
- Data.Git.Types: data Tree hash
- Data.Git.Types: instance GHC.Base.Monoid (Data.Git.Types.Tree hash)
+ Data.Git: newtype Blob hash
+ Data.Git: newtype Tree hash
+ Data.Git.Types: newtype Blob hash
+ Data.Git.Types: newtype Tree hash
- Data.Git: Commit :: Ref hash -> [Ref hash] -> Person -> Person -> Maybe ByteString -> [CommitExtra] -> ByteString -> Commit hash
+ Data.Git: Commit :: !(Ref hash) -> [Ref hash] -> !Person -> !Person -> Maybe ByteString -> [CommitExtra] -> !ByteString -> Commit hash
- Data.Git: CommitExtra :: ByteString -> ByteString -> CommitExtra
+ Data.Git: CommitExtra :: !ByteString -> !ByteString -> CommitExtra
- Data.Git: Person :: ByteString -> ByteString -> GitTime -> Person
+ Data.Git: Person :: !ByteString -> !ByteString -> !GitTime -> Person
- Data.Git: Tag :: Ref hash -> ObjectType -> ByteString -> Person -> ByteString -> Tag hash
+ Data.Git: Tag :: !(Ref hash) -> !ObjectType -> !ByteString -> !Person -> !ByteString -> Tag hash
- Data.Git: [commitAuthor] :: Commit hash -> Person
+ Data.Git: [commitAuthor] :: Commit hash -> !Person
- Data.Git: [commitCommitter] :: Commit hash -> Person
+ Data.Git: [commitCommitter] :: Commit hash -> !Person
- Data.Git: [commitExtraKey] :: CommitExtra -> ByteString
+ Data.Git: [commitExtraKey] :: CommitExtra -> !ByteString
- Data.Git: [commitExtraValue] :: CommitExtra -> ByteString
+ Data.Git: [commitExtraValue] :: CommitExtra -> !ByteString
- Data.Git: [commitMessage] :: Commit hash -> ByteString
+ Data.Git: [commitMessage] :: Commit hash -> !ByteString
- Data.Git: [commitTreeish] :: Commit hash -> Ref hash
+ Data.Git: [commitTreeish] :: Commit hash -> !(Ref hash)
- Data.Git: [personEmail] :: Person -> ByteString
+ Data.Git: [personEmail] :: Person -> !ByteString
- Data.Git: [personName] :: Person -> ByteString
+ Data.Git: [personName] :: Person -> !ByteString
- Data.Git: [personTime] :: Person -> GitTime
+ Data.Git: [personTime] :: Person -> !GitTime
- Data.Git: [tagBlob] :: Tag hash -> ByteString
+ Data.Git: [tagBlob] :: Tag hash -> !ByteString
- Data.Git: [tagName] :: Tag hash -> Person
+ Data.Git: [tagName] :: Tag hash -> !Person
- Data.Git: [tagObjectType] :: Tag hash -> ObjectType
+ Data.Git: [tagObjectType] :: Tag hash -> !ObjectType
- Data.Git: [tagRef] :: Tag hash -> Ref hash
+ Data.Git: [tagRef] :: Tag hash -> !(Ref hash)
- Data.Git: [tagS] :: Tag hash -> ByteString
+ Data.Git: [tagS] :: Tag hash -> !ByteString
- Data.Git.Monad: Commit :: Ref hash -> [Ref hash] -> Person -> Person -> Maybe ByteString -> [CommitExtra] -> ByteString -> Commit hash
+ Data.Git.Monad: Commit :: !(Ref hash) -> [Ref hash] -> !Person -> !Person -> Maybe ByteString -> [CommitExtra] -> !ByteString -> Commit hash
- Data.Git.Monad: Person :: ByteString -> ByteString -> GitTime -> Person
+ Data.Git.Monad: Person :: !ByteString -> !ByteString -> !GitTime -> Person
- Data.Git.Monad: [commitAuthor] :: Commit hash -> Person
+ Data.Git.Monad: [commitAuthor] :: Commit hash -> !Person
- Data.Git.Monad: [commitCommitter] :: Commit hash -> Person
+ Data.Git.Monad: [commitCommitter] :: Commit hash -> !Person
- Data.Git.Monad: [commitMessage] :: Commit hash -> ByteString
+ Data.Git.Monad: [commitMessage] :: Commit hash -> !ByteString
- Data.Git.Monad: [commitTreeish] :: Commit hash -> Ref hash
+ Data.Git.Monad: [commitTreeish] :: Commit hash -> !(Ref hash)
- Data.Git.Monad: [personEmail] :: Person -> ByteString
+ Data.Git.Monad: [personEmail] :: Person -> !ByteString
- Data.Git.Monad: [personName] :: Person -> ByteString
+ Data.Git.Monad: [personName] :: Person -> !ByteString
- Data.Git.Monad: [personTime] :: Person -> GitTime
+ Data.Git.Monad: [personTime] :: Person -> !GitTime
- Data.Git.Ref: data SHA1 :: *
+ Data.Git.Ref: data SHA1
- Data.Git.Types: Commit :: Ref hash -> [Ref hash] -> Person -> Person -> Maybe ByteString -> [CommitExtra] -> ByteString -> Commit hash
+ Data.Git.Types: Commit :: !(Ref hash) -> [Ref hash] -> !Person -> !Person -> Maybe ByteString -> [CommitExtra] -> !ByteString -> Commit hash
- Data.Git.Types: CommitExtra :: ByteString -> ByteString -> CommitExtra
+ Data.Git.Types: CommitExtra :: !ByteString -> !ByteString -> CommitExtra
- Data.Git.Types: DeltaOfs :: Word64 -> Delta -> DeltaOfs hash
+ Data.Git.Types: DeltaOfs :: !Word64 -> !Delta -> DeltaOfs hash
- Data.Git.Types: DeltaRef :: (Ref hash) -> Delta -> DeltaRef hash
+ Data.Git.Types: DeltaRef :: !(Ref hash) -> !Delta -> DeltaRef hash
- Data.Git.Types: GitTime :: Elapsed -> TimezoneOffset -> GitTime
+ Data.Git.Types: GitTime :: !Elapsed -> !TimezoneOffset -> GitTime
- Data.Git.Types: Person :: ByteString -> ByteString -> GitTime -> Person
+ Data.Git.Types: Person :: !ByteString -> !ByteString -> !GitTime -> Person
- Data.Git.Types: Tag :: Ref hash -> ObjectType -> ByteString -> Person -> ByteString -> Tag hash
+ Data.Git.Types: Tag :: !(Ref hash) -> !ObjectType -> !ByteString -> !Person -> !ByteString -> Tag hash
- Data.Git.Types: [commitAuthor] :: Commit hash -> Person
+ Data.Git.Types: [commitAuthor] :: Commit hash -> !Person
- Data.Git.Types: [commitCommitter] :: Commit hash -> Person
+ Data.Git.Types: [commitCommitter] :: Commit hash -> !Person
- Data.Git.Types: [commitExtraKey] :: CommitExtra -> ByteString
+ Data.Git.Types: [commitExtraKey] :: CommitExtra -> !ByteString
- Data.Git.Types: [commitExtraValue] :: CommitExtra -> ByteString
+ Data.Git.Types: [commitExtraValue] :: CommitExtra -> !ByteString
- Data.Git.Types: [commitMessage] :: Commit hash -> ByteString
+ Data.Git.Types: [commitMessage] :: Commit hash -> !ByteString
- Data.Git.Types: [commitTreeish] :: Commit hash -> Ref hash
+ Data.Git.Types: [commitTreeish] :: Commit hash -> !(Ref hash)
- Data.Git.Types: [gitTimeTimezone] :: GitTime -> TimezoneOffset
+ Data.Git.Types: [gitTimeTimezone] :: GitTime -> !TimezoneOffset
- Data.Git.Types: [gitTimeUTC] :: GitTime -> Elapsed
+ Data.Git.Types: [gitTimeUTC] :: GitTime -> !Elapsed
- Data.Git.Types: [personEmail] :: Person -> ByteString
+ Data.Git.Types: [personEmail] :: Person -> !ByteString
- Data.Git.Types: [personName] :: Person -> ByteString
+ Data.Git.Types: [personName] :: Person -> !ByteString
- Data.Git.Types: [personTime] :: Person -> GitTime
+ Data.Git.Types: [personTime] :: Person -> !GitTime
- Data.Git.Types: [tagBlob] :: Tag hash -> ByteString
+ Data.Git.Types: [tagBlob] :: Tag hash -> !ByteString
- Data.Git.Types: [tagName] :: Tag hash -> Person
+ Data.Git.Types: [tagName] :: Tag hash -> !Person
- Data.Git.Types: [tagObjectType] :: Tag hash -> ObjectType
+ Data.Git.Types: [tagObjectType] :: Tag hash -> !ObjectType
- Data.Git.Types: [tagRef] :: Tag hash -> Ref hash
+ Data.Git.Types: [tagRef] :: Tag hash -> !(Ref hash)
- Data.Git.Types: [tagS] :: Tag hash -> ByteString
+ Data.Git.Types: [tagS] :: Tag hash -> !ByteString

Files

Data/Git/Types.hs view
@@ -69,8 +69,8 @@ -- | Git time is number of seconds since unix epoch in the UTC zone with -- the current timezone associated data GitTime = GitTime-    { gitTimeUTC      :: Elapsed-    , gitTimeTimezone :: TimezoneOffset+    { gitTimeUTC      :: !Elapsed+    , gitTimeTimezone :: !TimezoneOffset     } deriving (Eq)  instance Timeable GitTime where@@ -177,51 +177,46 @@ -- FIXME: should be a string, but I don't know if the data is stored -- consistantly in one encoding (UTF8) data Person = Person-    { personName  :: ByteString-    , personEmail :: ByteString-    , personTime  :: GitTime+    { personName  :: !ByteString+    , personEmail :: !ByteString+    , personTime  :: !GitTime     } deriving (Show,Eq)  -- | Represent a root tree with zero to many tree entries.-data Tree hash = Tree { treeGetEnts :: [TreeEnt hash] } deriving (Show,Eq)--instance Monoid (Tree hash) where-    mempty                      = Tree []-    mappend (Tree e1) (Tree e2) = Tree (e1 ++ e2)-    mconcat trees               = Tree $ concatMap treeGetEnts trees+newtype Tree hash = Tree { treeGetEnts :: [TreeEnt hash] } deriving (Show,Eq)  -- | Represent a binary blob.-data Blob hash = Blob { blobGetContent :: L.ByteString } deriving (Show,Eq)+newtype Blob hash = Blob { blobGetContent :: L.ByteString } deriving (Show,Eq)  -- | Represent a commit object. data Commit hash = Commit-    { commitTreeish   :: Ref hash+    { commitTreeish   :: !(Ref hash)     , commitParents   :: [Ref hash]-    , commitAuthor    :: Person-    , commitCommitter :: Person+    , commitAuthor    :: !Person+    , commitCommitter :: !Person     , commitEncoding  :: Maybe ByteString     , commitExtras    :: [CommitExtra]-    , commitMessage   :: ByteString+    , commitMessage   :: !ByteString     } deriving (Show,Eq)  data CommitExtra = CommitExtra-    { commitExtraKey   :: ByteString-    , commitExtraValue :: ByteString+    { commitExtraKey   :: !ByteString+    , commitExtraValue :: !ByteString     } deriving (Show,Eq)  -- | Represent a signed tag. data Tag hash = Tag-    { tagRef        :: Ref hash-    , tagObjectType :: ObjectType-    , tagBlob       :: ByteString-    , tagName       :: Person-    , tagS          :: ByteString+    { tagRef        :: !(Ref hash)+    , tagObjectType :: !ObjectType+    , tagBlob       :: !ByteString+    , tagName       :: !Person+    , tagS          :: !ByteString     } deriving (Show,Eq)  -- | Delta pointing to an offset.-data DeltaOfs hash = DeltaOfs Word64 Delta+data DeltaOfs hash = DeltaOfs !Word64 !Delta     deriving (Show,Eq)  -- | Delta pointing to a ref.-data DeltaRef hash = DeltaRef (Ref hash) Delta+data DeltaRef hash = DeltaRef !(Ref hash) !Delta     deriving (Show,Eq)
git.cabal view
@@ -1,5 +1,5 @@ Name:                git-Version:             0.2.1+Version:             0.2.2 Synopsis:            Git operations in haskell Description:     .@@ -27,6 +27,7 @@  Library   Build-Depends:     base >= 4 && < 5+                   , basement                    , bytestring >= 0.9                    , byteable                    , containers