summaryrefslogtreecommitdiff
path: root/Types/UUID.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-10-08 17:58:32 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-10-08 17:58:32 -0400
commita56d3c92b9672c6d84ac007a404b07d3eeb51025 (patch)
tree2264ea086ca39f7243deb1adfcb085551006b07d /Types/UUID.hs
parentd5494842274030d21356c7492e6de5969173c34d (diff)
support invalidating existing VerifiedCopys
Diffstat (limited to 'Types/UUID.hs')
-rw-r--r--Types/UUID.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Types/UUID.hs b/Types/UUID.hs
index 27d82b86c..4212eaa7f 100644
--- a/Types/UUID.hs
+++ b/Types/UUID.hs
@@ -24,6 +24,9 @@ fromUUID NoUUID = ""
class ToUUID a where
toUUID :: a -> UUID
+instance ToUUID UUID where
+ toUUID = id
+
instance ToUUID String where
toUUID [] = NoUUID
toUUID s = UUID s