Skip to content

Commit b6e9680

Browse files
committed
StorePath: Derive Eq to make StorePathSet usable.
1 parent c86c4f7 commit b6e9680

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-
}
50+
} deriving (Eq)
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 (Hashable)
64+
} deriving (Eq, Hashable)
6565

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

0 commit comments

Comments
 (0)