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 b6e9680 commit 671d3c5Copy full SHA for 671d3c5
hnix-store-core/src/System/Nix/Internal/StorePath.hs
@@ -47,7 +47,7 @@ data StorePath (storeDir :: StoreDir) = StorePath
47
-- this is typically the package name and version (e.g.
48
-- hello-1.2.3).
49
storePathName :: !StorePathName
50
- } deriving (Eq)
+ } deriving (Eq, Ord)
51
52
instance Hashable (StorePath storeDir) where
53
hashWithSalt s (StorePath {..}) =
@@ -61,7 +61,7 @@ instance Hashable (StorePath storeDir) where
61
newtype StorePathName = StorePathName
62
{ -- | Extract the contents of the name.
63
unStorePathName :: Text
64
- } deriving (Eq, Hashable)
+ } deriving (Eq, Hashable, Ord)
65
66
-- | The hash algorithm used for store path hashes.
67
type StorePathHashAlgo = 'Truncated 20 'SHA256
0 commit comments