mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-28 01:13:18 -06:00
restore missing case in the JSON instance for BracketedString
This commit is contained in:
1 parent
418aa1a2b2
commit
247a48e5bb
1 file changed
+1
@@ -457,6 +457,7 @@ instance JSON BracketedString where
|
|||||||
readJSON x = return (Leaf "")
|
readJSON x = return (Leaf "")
|
||||||
showJSON (Bracket cat fid index fun bs) =
|
showJSON (Bracket cat fid index fun bs) =
|
||||||
makeObj ["cat".=cat, "fid".=fid, "index".=index, "fun".=fun, "children".=bs]
|
makeObj ["cat".=cat, "fid".=fid, "index".=index, "fun".=fun, "children".=bs]
|
||||||
|
showJSON BIND = makeObj ["bind".=True]
|
||||||
showJSON (Leaf s) = makeObj ["token".=s]
|
showJSON (Leaf s) = makeObj ["token".=s]
|
||||||
|
|
||||||
-- * PGF utilities
|
-- * PGF utilities
|
||||||
|
|||||||
Reference in new issue
Block a user