Skip to content

Commit

Permalink
Pull-out Depth into its own Kore.JsonRpc.Types.Depth module
Browse files Browse the repository at this point in the history
  • Loading branch information
geo2a committed Sep 14, 2023
1 parent db8439b commit 929ecc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions kore-rpc-types/kore-rpc-types.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ library
Kore.JsonRpc.Error
Kore.JsonRpc.Types
Kore.JsonRpc.Types.Log
Kore.JsonRpc.Types.Depth
Kore.JsonRpc.Server
Kore.Syntax.Json.Types
hs-source-dirs:
Expand Down
7 changes: 2 additions & 5 deletions kore-rpc-types/src/Kore/JsonRpc/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ License : BSD-3-Clause
-}
module Kore.JsonRpc.Types (
module Kore.JsonRpc.Types,
module Kore.JsonRpc.Types.Depth,
) where

import Control.Exception (Exception)
Expand All @@ -19,18 +20,14 @@ import Deriving.Aeson (
StripPrefix,
)
import GHC.Generics (Generic)
import Kore.JsonRpc.Types.Depth (Depth (..))
import Kore.JsonRpc.Types.Log (LogEntry)
import Kore.Syntax.Json.Types (KoreJson)
import Network.JSONRPC (
FromRequest (..),
)
import Numeric.Natural
import Prettyprinter qualified as Pretty

newtype Depth = Depth {getNat :: Natural}
deriving stock (Show, Eq)
deriving newtype (FromJSON, ToJSON, Num)

data ExecuteRequest = ExecuteRequest
{ state :: !KoreJson
, maxDepth :: !(Maybe Depth)
Expand Down

0 comments on commit 929ecc3

Please sign in to comment.