core: add Generic, Show for Signature and NarSignature

This commit is contained in:
Richard Marko 2023-11-16 07:11:29 +01:00
parent abc57f5975
commit e332afbdf0
2 changed files with 4 additions and 2 deletions

View File

@ -8,6 +8,8 @@
* `BuildResult`s `timesBuild` field changes type from `Integer` to `Int` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
* Additions:
* Added `Generic` and `Show` instances for
`Signature` and `NarSignature` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
* Added `Eq` and `Ord` instances for `SomeNamedDigest` [#231](https://github.com/haskell-nix/hnix-store/pull/231)
* `BuildStatus` grows `NoSubstituters` and `ResolvesToAlreadyValid` constructors [#231](https://github.com/haskell-nix/hnix-store/pull/231)
* `InvalidPathError` replacing previous stringy error [#231](https://github.com/haskell-nix/hnix-store/pull/231)

View File

@ -23,7 +23,7 @@ import qualified Crypto.Saltine.Internal.ByteSizes as NaClSizes
-- | A NaCl signature.
newtype Signature = Signature ByteString
deriving (Eq, Ord)
deriving (Eq, Generic, Ord, Show)
instance IsEncoding Signature where
decode s
@ -42,4 +42,4 @@ data NarSignature = NarSignature
, -- | The archive's signature.
sig :: Signature
}
deriving (Eq, Ord)
deriving (Eq, Generic, Ord, Show)