diff --git a/Git/Sample.hs b/Git/Sample.hs
--- a/Git/Sample.hs
+++ b/Git/Sample.hs
@@ -72,6 +72,8 @@
     deleteRepository  = undefined
     -- remoteFetch       = undefined
 
+    diffContentsWithTree = undefined
+
 -- type TreeEntry m = Git.TreeEntry (SampleRepository m)
 
 data Repository = Repository Void
@@ -99,7 +101,7 @@
 sampleGet = SampleRepository ask
 
 sampleFactory :: Git.MonadGit m
-              => Git.RepositoryFactory SampleRepository m Repository
+              => Git.RepositoryFactory (SampleRepository m) m Repository
 sampleFactory = Git.RepositoryFactory
     { Git.openRepository  = openSampleRepository
     , Git.runRepository   = runSampleRepository
diff --git a/gitlib-sample.cabal b/gitlib-sample.cabal
--- a/gitlib-sample.cabal
+++ b/gitlib-sample.cabal
@@ -1,5 +1,5 @@
 Name:                gitlib-sample
-Version:             2.1.0.0
+Version:             2.2.0.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             >= 2.1.0.0
---         , gitlib-test        >= 2.1.0.0
---         , gitlib-sample      >= 2.1.0.0
+--         , gitlib             >= 2.2.0.0
+--         , gitlib-test        >= 2.2.0.0
+--         , gitlib-sample      >= 2.2.0.0
 --         , HUnit              >= 1.2.5
 --         , hspec              >= 1.4.4
 --         , hspec-expectations >= 0.3
@@ -34,9 +34,7 @@
     ghc-options: -Wall
     build-depends:
           base                 >= 3 && < 5
-        , gitlib               >= 2.1.0.0
-        , failure              >= 0.2.0.1
-        , tagged               >= 0.2.3.1
+        , gitlib               >= 2.2.0.0
         , transformers         >= 0.3.0.0
     exposed-modules:
         Git.Sample
