Skip to content

Commit e332afb

Browse files
committed
core: add Generic, Show for Signature and NarSignature
1 parent abc57f5 commit e332afb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hnix-store-core/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
* `BuildResult`s `timesBuild` field changes type from `Integer` to `Int` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
99

1010
* Additions:
11+
* Added `Generic` and `Show` instances for
12+
`Signature` and `NarSignature` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
1113
* Added `Eq` and `Ord` instances for `SomeNamedDigest` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
1214
* `BuildStatus` grows `NoSubstituters` and `ResolvesToAlreadyValid` constructors [#231](https://github.com/haskell-nix/hnix-store/pull/231)
1315
* `InvalidPathError` replacing previous stringy error [#231](https://github.com/haskell-nix/hnix-store/pull/231)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import qualified Crypto.Saltine.Internal.ByteSizes as NaClSizes
2323

2424
-- | A NaCl signature.
2525
newtype Signature = Signature ByteString
26-
deriving (Eq, Ord)
26+
deriving (Eq, Generic, Ord, Show)
2727

2828
instance IsEncoding Signature where
2929
decode s
@@ -42,4 +42,4 @@ data NarSignature = NarSignature
4242
, -- | The archive's signature.
4343
sig :: Signature
4444
}
45-
deriving (Eq, Ord)
45+
deriving (Eq, Generic, Ord, Show)

0 commit comments

Comments
 (0)