Skip to content
Snippets Groups Projects
Commit 74e435a6 authored by Vincent Hanquez's avatar Vincent Hanquez
Browse files

remove Monoid

parent c54ff830
No related branches found
No related tags found
No related merge requests found
......@@ -185,11 +185,6 @@ data Person = Person
-- | 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
-- | Represent a binary blob.
data Blob hash = Blob { blobGetContent :: L.ByteString } deriving (Show,Eq)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment