Skip to content

Commit 740a60e

Browse files
authored
Rename APIMethods to APIMethod + derive some instances (#3597)
rename APIMEthods to APIMethod + derive some instances
1 parent cdb3de2 commit 740a60e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kore-rpc-types/src/Kore/JsonRpc/Types.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,14 @@ data SimplifyResult = SimplifyResult
159159

160160
data ReqOrRes = Req | Res
161161

162-
data APIMethods
162+
data APIMethod
163163
= ExecuteM
164164
| ImpliesM
165165
| SimplifyM
166166
| AddModuleM
167+
deriving stock (Eq, Ord, Show, Enum)
167168

168-
type family APIPayload (api :: APIMethods) (r :: ReqOrRes) where
169+
type family APIPayload (api :: APIMethod) (r :: ReqOrRes) where
169170
APIPayload 'ExecuteM 'Req = ExecuteRequest
170171
APIPayload 'ExecuteM 'Res = ExecuteResult
171172
APIPayload 'ImpliesM 'Req = ImpliesRequest

0 commit comments

Comments
 (0)