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 5b91fca commit 1dbe10dCopy full SHA for 1dbe10d
hnix-store-core/src/System/Nix/Internal/Hash.hs
@@ -64,7 +64,7 @@ class ValidAlgo (a :: HashAlgorithm) where
64
65
-- | A 'HashAlgorithm' with a canonical name, for serialization
66
-- purposes (e.g. SRI hashes)
67
-class NamedAlgo (a :: HashAlgorithm) where
+class ValidAlgo a => NamedAlgo (a :: HashAlgorithm) where
68
algoName :: Text
69
hashSize :: Int
70
@@ -87,7 +87,7 @@ instance NamedAlgo 'SHA512 where
87
-}
88
89
-- | A digest whose 'NamedAlgo' is not known at compile time.
90
-data SomeNamedDigest = forall a . (NamedAlgo a, ValidAlgo a) => SomeDigest (Digest a)
+data SomeNamedDigest = forall a . NamedAlgo a => SomeDigest (Digest a)
91
92
instance Show SomeNamedDigest where
93
show sd = case sd of
0 commit comments