Skip to content

Commit

Permalink
Merge pull request haskell-nix#278 from haskell-nix/srk/daemon
Browse files Browse the repository at this point in the history
add Arbitrary Eq for SuccessCodeReply, CI: re-enable on.pull_request
  • Loading branch information
sorki authored Dec 13, 2023
2 parents c1f7666 + 083dfd8 commit b57f69b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.dhall.frozen
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let haskellCi =
https://raw.githubusercontent.com/sorki/github-actions-dhall/main/haskell-ci.dhall
sha256:a39801f73d93c6e0f91942755ef8ae4c50947e9a9b180b6724957229470f7b8d
sha256:5d7058a7684fd5315467b562853bd1c4a43da691c09293d3715ee739dfa26e08

let defSteps = haskellCi.defaultCabalSteps

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
- "macos-latest"
name: Haskell CI
'on':
pull_request: {}
push: {}
schedule:
- cron: "4 20 10 * *"
3 changes: 3 additions & 0 deletions hnix-store-remote/src/System/Nix/Store/Remote/Arbitrary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ instance Arbitrary (Some StoreRequest) where

-- ** Reply

deriving via GenericArbitrary SuccessCodeReply
instance Arbitrary SuccessCodeReply

deriving via GenericArbitrary GCResult
instance Arbitrary GCResult

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit b57f69b

Please sign in to comment.