Skip to content

Commit 671d3c5

Browse files
committed
Derive Ord for StorePath
1 parent b6e9680 commit 671d3c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hnix-store-core/src/System/Nix/Internal/StorePath.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ data StorePath (storeDir :: StoreDir) = StorePath
4747
-- this is typically the package name and version (e.g.
4848
-- hello-1.2.3).
4949
storePathName :: !StorePathName
50-
} deriving (Eq)
50+
} deriving (Eq, Ord)
5151

5252
instance Hashable (StorePath storeDir) where
5353
hashWithSalt s (StorePath {..}) =
@@ -61,7 +61,7 @@ instance Hashable (StorePath storeDir) where
6161
newtype StorePathName = StorePathName
6262
{ -- | Extract the contents of the name.
6363
unStorePathName :: Text
64-
} deriving (Eq, Hashable)
64+
} deriving (Eq, Hashable, Ord)
6565

6666
-- | The hash algorithm used for store path hashes.
6767
type StorePathHashAlgo = 'Truncated 20 'SHA256

0 commit comments

Comments
 (0)