We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 716d80a commit 7018340Copy full SHA for 7018340
uuid-types/Data/UUID/Types/Internal.hs
@@ -1,4 +1,4 @@
1
-{-# LANGUAGE DeriveDataTypeable, TypeFamilies, CPP #-}
+{-# LANGUAGE DeriveDataTypeable, TypeFamilies, CPP, DeriveGeneric #-}
2
{-# OPTIONS_HADDOCK hide #-}
3
4
-- |
@@ -47,6 +47,7 @@ import Data.Bits
47
import Data.Hashable
48
import Data.List (elemIndices)
49
import Foreign.Ptr (Ptr)
50
+import GHC.Generics (Generic)
51
52
#if MIN_VERSION_base(4,0,0)
53
import Data.Data
@@ -81,7 +82,8 @@ data UUID
81
82
{-# UNPACK #-} !Word32
83
84
- deriving (Eq, Ord, Typeable)
85
+ deriving (Eq, Generic, Ord, Typeable)
86
+
87
{-
88
Other representations that we tried are:
89
Mimic V1 structure: !Word32 !Word16 !Word16 !Word16
0 commit comments