gitlib-sample 1.0.1 → 1.1.0
raw patch · 2 files changed
+25/−19 lines, 2 filesdep ~gitlibPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: gitlib
API changes (from Hackage documentation)
- Git.Sample: instance Eq (Oid (SampleRepository m))
- Git.Sample: instance Ord (Oid (SampleRepository m))
- Git.Sample: instance Show (Oid (SampleRepository m))
+ Git.Sample: instance Eq Void
+ Git.Sample: instance IsOid Void
+ Git.Sample: instance Ord Void
+ Git.Sample: instance Show Void
Files
- Git/Sample.hs +20/−14
- gitlib-sample.cabal +5/−5
Git/Sample.hs view
@@ -13,7 +13,7 @@ module Git.Sample ( SampleRepository(..), Repository(..)- , Git.Oid(..), BlobOid(), TreeOid(), CommitOid()+ , Git.Oid, BlobOid(), TreeOid(), CommitOid() , Tree(), Commit() , TreeRef(), CommitRef(), Reference() , sampleFactory@@ -30,16 +30,27 @@ data Void +instance Show Void where+ show _ = undefined++instance Ord Void where+ _ `compare` _ = undefined++instance Eq Void where+ _ == _ = undefined++instance Git.IsOid Void where+ renderOid _ = undefined+ instance Git.MonadGit m => Git.Repository (SampleRepository m) where- data Oid (SampleRepository m) = Oid Void- data TreeData (SampleRepository m) = Void- data Options (SampleRepository m) = Options+ type Oid (SampleRepository m) = Void+ type Tree (SampleRepository m) = Void+ data Options (SampleRepository m) = Options facts = return Git.RepositoryFacts { Git.hasSymbolicReferences = True } parseOid = undefined- renderOid = undefined lookupRef = undefined createRef = undefined updateRef = undefined@@ -57,21 +68,16 @@ missingObjects = undefined traverseObjects = undefined newTree = undefined+ cloneTree = undefined+ traverseEntries = undefined+ unsafeUpdateTree = undefined+ writeTree = undefined hashContents = undefined createBlob = undefined createCommit = undefined createTag = undefined deleteRepository = undefined remoteFetch = undefined--instance Show (Git.Oid (SampleRepository m)) where- show (Oid _coid) = undefined--instance Ord (Git.Oid (SampleRepository m)) where- Oid _coid1 `compare` Oid _coid2 = undefined--instance Eq (Git.Oid (SampleRepository m)) where- oid1 == oid2 = oid1 `compare` oid2 == EQ -- type TreeEntry m = Git.TreeEntry (SampleRepository m)
gitlib-sample.cabal view
@@ -1,5 +1,5 @@ Name: gitlib-sample-Version: 1.0.1+Version: 1.1.0 Synopsis: Sample backend for gitlib showing the basic structure for any backend. License-file: LICENSE License: MIT@@ -22,9 +22,9 @@ -- Hs-source-dirs: test -- Build-depends: -- base >=3--- , gitlib--- , gitlib-test--- , gitlib-sample+-- , gitlib >= 1.1.0+-- , gitlib-test >= 1.1.0+-- , gitlib-sample >= 1.1.0 -- , HUnit >= 1.2.5 -- , hspec >= 1.4.4 -- , hspec-expectations >= 0.3@@ -34,7 +34,7 @@ ghc-options: -Wall build-depends: base >= 3 && < 5- , gitlib+ , gitlib >= 1.1.0 , failure >= 0.2.0.1 , system-filepath >= 0.4.7 , tagged >= 0.2.3.1