From 118895081d97279a796cc704e6c23bf92ed79e5e Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Sat, 30 Mar 2019 21:45:45 -0400 Subject: Re-named "do-template" to "template". --- stdlib/source/lux/data/format/json.lux | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'stdlib/source/lux/data/format/json.lux') diff --git a/stdlib/source/lux/data/format/json.lux b/stdlib/source/lux/data/format/json.lux index 64064fb1f..b03cb5ae9 100644 --- a/stdlib/source/lux/data/format/json.lux +++ b/stdlib/source/lux/data/format/json.lux @@ -26,7 +26,7 @@ ["s" syntax (#+ syntax:)] ["." code]]]) -(do-template [ ] +(template [ ] [(type: #export )] [Null Any] @@ -43,7 +43,7 @@ (#Array (Row JSON)) (#Object (Dictionary String JSON))) -(do-template [ ] +(template [ ] [(type: #export )] [Array (Row JSON)] @@ -130,7 +130,7 @@ _ (#error.Failure ($_ text@compose "Cannot set field '" key "' of a non-object.")))) -(do-template [ ] +(template [ ] [(def: #export ( key json) {#.doc (code.text ($_ text@compose "A JSON object field getter for " "."))} (-> Text JSON (Error )) @@ -211,7 +211,7 @@ (def: (show-null _) (-> Null Text) "null") -(do-template [ ] +(template [ ] [(def: (-> Text) )] [show-boolean Boolean ..encode-boolean] @@ -290,7 +290,7 @@ (#.Cons head tail) (#error.Success [tail head])))) -(do-template [ ] +(template [ ] [(def: #export {#.doc (code.text ($_ text@compose "Reads a JSON value as " "."))} (Reader ) @@ -309,7 +309,7 @@ [string Text #String "string"] ) -(do-template [ ] +(template [ ] [(def: #export ( test) {#.doc (code.text ($_ text@compose "Asks whether a JSON value is a " "."))} (-> (Reader Bit)) @@ -448,7 +448,7 @@ [_ (l.this "null")] (wrap []))) -(do-template [ ] +(template [ ] [(def: (l.Lexer Boolean) (do p.monad @@ -527,7 +527,7 @@ value (json~ [])] (wrap [key value]))) -(do-template [ ] +(template [ ] [(def: ( json~) (-> (-> Any (l.Lexer JSON)) (l.Lexer )) (do p.monad -- cgit v1.2.3