summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2022-03-24 12:22:07 -0400
committerJoey Hess <joeyh@joeyh.name>2022-03-24 12:22:07 -0400
commitd1a28900ea59e0850fd4ae65f0ebcef9e1a5bf9e (patch)
tree0c4c1b9aa56561140c6823bf5a998859c4c47cd1
parent9c729078848fc0a1d245852164aa573f83bfa84b (diff)
downloaddebug-me-d1a28900ea59e0850fd4ae65f0ebcef9e1a5bf9e.tar.gz
qualify GHC.Generics to avoid warning
Seems that Generic is in scope w/o the import in new ghc, I assume but have not verified that old ghc needed the import.
-rw-r--r--Val.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Val.hs b/Val.hs
index 5c52c82..d010a2a 100644
--- a/Val.hs
+++ b/Val.hs
@@ -9,8 +9,8 @@ module Val where
import Memory
import JSON
+import qualified GHC.Generics as G
-import GHC.Generics (Generic)
import Data.Aeson.Types
import qualified Codec.Binary.Base64 as B64
import qualified Data.Text as T
@@ -20,7 +20,7 @@ import qualified Data.Semigroup as Sem
-- | Newtype of ByteString so we can have JSON instances without orphans.
newtype Val = Val { val :: B.ByteString }
- deriving (Show, Generic, Eq, Sem.Semigroup, Monoid)
+ deriving (Show, G.Generic, Eq, Sem.Semigroup, Monoid)
instance DataSize Val where
dataSize (Val b) = fromIntegral (B.length b)