aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/macro/poly/json.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-07-13 22:01:32 -0400
committerEduardo Julian2018-07-13 22:01:32 -0400
commit69fefab57c40f323d759dc444dbcebad15071585 (patch)
treedb08a3ea37c7818c8a98fc995d3c19440141b700 /stdlib/source/lux/macro/poly/json.lux
parent6acf4ffc362c0f8ef77d96f8cfe991adb2d9a0eb (diff)
Re-named "Bool" type to "Bit".
Diffstat (limited to '')
-rw-r--r--stdlib/source/lux/macro/poly/json.lux14
1 files changed, 7 insertions, 7 deletions
diff --git a/stdlib/source/lux/macro/poly/json.lux b/stdlib/source/lux/macro/poly/json.lux
index 0474c3d4b..1f5b4aab6 100644
--- a/stdlib/source/lux/macro/poly/json.lux
+++ b/stdlib/source/lux/macro/poly/json.lux
@@ -6,7 +6,7 @@
codec
["p" parser]]
[data
- [bool]
+ [bit]
maybe
["e" error]
[sum]
@@ -91,7 +91,7 @@
<encoder>))))]
[(poly.exactly Any) (function ((~ g!_) (~ (code.symbol ["" "0"]))) #//.Null)]
- [(poly.similar Bool) (|>> #//.Boolean)]
+ [(poly.similar Bit) (|>> #//.Boolean)]
[(poly.similar Nat) (:: (~! ..Codec<JSON,Nat>) (~' encode))]
[(poly.similar Int) (:: (~! ..Codec<JSON,Int>) (~' encode))]
[(poly.similar Frac) (|>> #//.Number)]
@@ -206,8 +206,8 @@
(wrap (` (: (~ (@JSON//decode inputT))
<decoder>))))]
- [(poly.exactly Any) //.null]
- [(poly.similar Bool) //.boolean]
+ [(poly.exactly Any) //.null]
+ [(poly.similar Bit) //.boolean]
[(poly.similar Nat) (p.codec (~! ..Codec<JSON,Nat>) //.any)]
[(poly.similar Int) (p.codec (~! ..Codec<JSON,Int>) //.any)]
[(poly.similar Frac) //.number]
@@ -296,18 +296,18 @@
(syntax: #export (Codec<JSON,?> inputT)
{#.doc (doc "A macro for automatically producing JSON codecs."
(type: Variant
- (#Case0 Bool)
+ (#Case0 Bit)
(#Case1 Text)
(#Case2 Frac))
(type: Record
- {#bool Bool
+ {#bit Bit
#frac Frac
#text Text
#maybe (Maybe Frac)
#list (List Frac)
#variant Variant
- #tuple [Bool Frac Text]
+ #tuple [Bit Frac Text]
#dict (Dictionary Text Frac)})
(derived: (Codec<JSON,?> Record)))}