mirror of
https://github.com/haskell-nix/hnix-store.git
synced 2025-01-07 11:51:26 +03:00
core: add Generic, Show for Signature and NarSignature
This commit is contained in:
parent
abc57f5975
commit
e332afbdf0
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user