summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2017-05-20 14:05:57 -0400
committerJoey Hess <joeyh@joeyh.name>2017-05-20 14:05:57 -0400
commit2e16195d151d401a664fa929604413aa613aa9f5 (patch)
tree5ee2dbedf23fc09fd9b242c17d18949c158238da
parentcb5fb11eb6e37588d1a6ad97c6e6b8ab3fdd3e68 (diff)
downloaddebug-me-2e16195d151d401a664fa929604413aa613aa9f5.tar.gz
simplify, removing () instance
-rw-r--r--Hash.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/Hash.hs b/Hash.hs
index a76e0b4..89b0384 100644
--- a/Hash.hs
+++ b/Hash.hs
@@ -85,8 +85,5 @@ instance Hashable [Hash] where
-- | Hash empty string for Nothing
instance Hashable (Maybe Hash) where
- hash Nothing = hash ()
+ hash Nothing = hash (mempty :: B.ByteString)
hash (Just v) = hash v
-
-instance Hashable () where
- hash () = hash (mempty :: B.ByteString)