remote: add Arbitrary Eq for SuccessCodeReply

This commit is contained in:
sorki 2023-12-13 09:26:08 +01:00
parent c1f7666e03
commit e20463df19
2 changed files with 6 additions and 1 deletions

View File

@ -123,6 +123,9 @@ instance Arbitrary (Some StoreRequest) where
-- ** Reply
deriving via GenericArbitrary SuccessCodeReply
instance Arbitrary SuccessCodeReply
deriving via GenericArbitrary GCResult
instance Arbitrary GCResult

View File

@ -2,7 +2,9 @@ module System.Nix.Store.Remote.Types.SuccessCodeReply
( SuccessCodeReply(..)
) where
import GHC.Generics (Generic)
-- | Reply that checks an int success return value
data SuccessCodeReply = SuccessCodeReply
deriving (Show)
deriving (Eq, Show, Generic)