Skip to content

Commit

Permalink
Update saw-remote-api
Browse files Browse the repository at this point in the history
  • Loading branch information
robdockins committed Jul 6, 2022
1 parent a2f18b4 commit 1084357
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions saw-remote-api/src/SAWServer.hs
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ initialState readFileFn =
, roBasicSS = ss
, roStackTrace = []
, roSubshell = fail "SAW server does not support subshells."
, roProofSubshell = fail "SAW server does not support subshells."
, roLocalEnv = []
}
rw = TopLevelRW
Expand Down
3 changes: 2 additions & 1 deletion saw-remote-api/src/SAWServer/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ instance Doc.DescribedMethod (EvalParams Bool cryptolExpr) (EvalResult Bool) whe
Doc.Paragraph [Doc.Text "The boolean value of the expresssion."])
]

eval :: (TypedTerm -> SV.TopLevel a) -> EvalParams a Expression -> Argo.Command SAWState (EvalResult a)
eval :: (SV.FromValue a, SV.IsValue a) =>
(TypedTerm -> SV.TopLevel a) -> EvalParams a Expression -> Argo.Command SAWState (EvalResult a)
eval f params = do
state <- Argo.getState
fileReader <- Argo.getFileReader
Expand Down

0 comments on commit 1084357

Please sign in to comment.