diff --git a/Git/Sample.hs b/Git/Sample.hs
--- a/Git/Sample.hs
+++ b/Git/Sample.hs
@@ -29,6 +29,7 @@
 import qualified Git
 
 data Void
+data VoidP p
 
 instance Show Void where
     show _ = undefined
@@ -43,9 +44,10 @@
     renderOid _ = undefined
 
 instance Git.MonadGit m => Git.Repository (SampleRepository m) where
-    type Oid (SampleRepository m)     = Void
-    type Tree (SampleRepository m)    = Void
-    data Options (SampleRepository m) = Options
+    type Oid (SampleRepository m)      = Void
+    type TreeKind (SampleRepository m) = Git.PersistentTree
+    type Tree (SampleRepository m)     = VoidP
+    data Options (SampleRepository m)  = Options
 
     facts = return Git.RepositoryFacts
         { Git.hasSymbolicReferences = True }
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:             1.1.0
+Version:             1.2.0
 Synopsis:            Sample backend for gitlib showing the basic structure for any backend.
 License-file:        LICENSE
 License:             MIT
