Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
caisar
Commits
e47b25ec
Commit
e47b25ec
authored
2 weeks ago
by
Julien Girard-Satabin
Browse files
Options
Downloads
Patches
Plain Diff
[json] Remove JSON module altogether
parent
bccffcc0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main.ml
+1
-1
1 addition, 1 deletion
src/main.ml
src/verification_types.ml
+10
-0
10 additions, 0 deletions
src/verification_types.ml
with
11 additions
and
1 deletion
src/main.ml
+
1
−
1
View file @
e47b25ec
...
@@ -182,7 +182,7 @@ let record_verification_result verification_result file =
...
@@ -182,7 +182,7 @@ let record_verification_result verification_result file =
verification_result
verification_result
let
verify_json
?
memlimit
?
timelimit
?
outfile
json
=
let
verify_json
?
memlimit
?
timelimit
?
outfile
json
=
let
query
=
Json
.
to_query
json
in
let
query
=
Verification_types
.
Query
.
of_json
json
in
let
query
=
let
query
=
(* Precedence to the command line option, if any. *)
(* Precedence to the command line option, if any. *)
(* TODO: * get proper default value instead of defining it twice in
(* TODO: * get proper default value instead of defining it twice in
...
...
This diff is collapsed.
Click to expand it.
src/verification_types.ml
+
10
−
0
View file @
e47b25ec
...
@@ -93,6 +93,16 @@ module Query = struct
...
@@ -93,6 +93,16 @@ module Query = struct
dataset
;
dataset
;
}
}
let
of_json
s
=
match
of_yojson
(
Yojson
.
Safe
.
from_file
s
)
with
|
Ok
t
->
t
|
Error
msg
->
invalid_arg
(
Fmt
.
str
"Unrecognized JSON configuration in file '%s' (%s)"
s
msg
)
|
exception
Yojson
.
Json_error
msg
->
failwith
(
Fmt
.
str
"Unexpected error while parsing JSON file '%s' (%s)"
s
msg
)
let
pretty
fmt
=
Fmt
.
fmt
"%a"
fmt
pp
let
pretty
fmt
=
Fmt
.
fmt
"%a"
fmt
pp
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment