Skip to content

Commit b57f69b

Browse files
authored
Merge pull request #278 from haskell-nix/srk/daemon
add Arbitrary Eq for SuccessCodeReply, CI: re-enable on.pull_request
2 parents c1f7666 + 083dfd8 commit b57f69b

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/ci.dhall.frozen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
let haskellCi =
22
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall
3-
sha256:a39801f73d93c6e0f91942755ef8ae4c50947e9a9b180b6724957229470f7b8d
3+
sha256:5d7058a7684fd5315467b562853bd1c4a43da691c09293d3715ee739dfa26e08
44

55
let defSteps = haskellCi.defaultCabalSteps
66

.github/workflows/ci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ jobs:
5757
- "macos-latest"
5858
name: Haskell CI
5959
'on':
60+
pull_request: {}
6061
push: {}
6162
schedule:
6263
- cron: "4 20 10 * *"

hnix-store-remote/src/System/Nix/Store/Remote/Arbitrary.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ instance Arbitrary (Some StoreRequest) where
123123

124124
-- ** Reply
125125

126+
deriving via GenericArbitrary SuccessCodeReply
127+
instance Arbitrary SuccessCodeReply
128+
126129
deriving via GenericArbitrary GCResult
127130
instance Arbitrary GCResult
128131

hnix-store-remote/src/System/Nix/Store/Remote/Types/SuccessCodeReply.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ module System.Nix.Store.Remote.Types.SuccessCodeReply
22
( SuccessCodeReply(..)
33
) where
44

5+
import GHC.Generics (Generic)
6+
57
-- | Reply that checks an int success return value
68
data SuccessCodeReply = SuccessCodeReply
7-
deriving (Show)
9+
deriving (Eq, Show, Generic)
810

0 commit comments

Comments
 (0)