summaryrefslogtreecommitdiff
path: root/Types/UUID.hs
diff options
context:
space:
mode:
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