Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
guix-hpc
guix-kernel
Commits
8a5bb9d5
Commit
8a5bb9d5
authored
Sep 09, 2019
by
Ludovic Courtès
Browse files
json: Work around bug for (scm->json '()).
* jupyter/json.scm <top level>: Override (@@ (json builder) json-build).
parent
a1fabc65
Changes
1
Hide whitespace changes
Inline
Side-by-side
jupyter/json.scm
View file @
8a5bb9d5
...
...
@@ -87,3 +87,13 @@ to its JSON representation (an alist)."
(
define-json-reader
json->record
ctor
(
field
spec
...
)
...
)))))
(
set!
(
@@
(
json
builder
)
json-build
)
;; Work around a bug in Guile-JSON 3.1.0:
;; <https://github.com/aconchillo/guile-json/issues/47>.
(
let
((
real-json-build
(
@@
(
json
builder
)
json-build
)))
(
lambda
(
scm
port
.
rest
)
(
if
(
eq?
scm
'
())
;match '() but not #nil
(
display
"{}"
port
)
(
apply
real-json-build
scm
port
rest
)))))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment