summaryrefslogtreecommitdiff
path: root/src/Repo.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Repo.hs')
-rw-r--r--src/Repo.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Repo.hs b/src/Repo.hs
index c0500f3..1148972 100644
--- a/src/Repo.hs
+++ b/src/Repo.hs
@@ -40,11 +40,13 @@ data Commit = Commit
newtype CommitId = CommitId ByteString
+ deriving (Eq, Ord)
showCommitId :: CommitId -> String
showCommitId (CommitId cid) = BC.unpack cid
newtype TreeId = TreeId ByteString
+ deriving (Eq, Ord)
showTreeId :: TreeId -> String
showTreeId (TreeId tid) = BC.unpack tid