Skip to content

Commit

Permalink
Make RPC implication types match the ones in Booster
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Aug 9, 2023
1 parent 501ad4c commit 27c81b4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kore-rpc-types/src/Kore/JsonRpc/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -192,21 +192,23 @@ data ImplicationValidityResult
| -- | implication is invalid, explains why
ImplicationInvalid ImplicationInvalidReason
| -- | implication is unknown, explains why
ImplicationUnknown ImplicationInvalidReason
ImplicationUnknown ImplicationUnknownReason
deriving stock (Generic, Show, Eq)
deriving
(FromJSON, ToJSON)
via CustomJSON '[] ImplicationValidityResult

data ImplicationInvalidReason
= ImplicationTermsDontUnify KoreJson
| ImplicationConstraintSubsumptionFailed KoreJson
= MatchingFailed KoreJson
| ConstraintSubsumptionFailed KoreJson
deriving stock (Generic, Show, Eq)
deriving
(FromJSON, ToJSON)
via CustomJSON '[] ImplicationInvalidReason

data ImplicationUnknownReason = ImplicationConstraintSubsumptionUnknown KoreJson
data ImplicationUnknownReason
= MatchingUnknown KoreJson
| ConstraintSubsumptionUnknown KoreJson
deriving stock (Generic, Show, Eq)
deriving
(FromJSON, ToJSON)
Expand Down

0 comments on commit 27c81b4

Please sign in to comment.