mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
restore missing case in the JSON instance for BracketedString
This commit is contained in:
@@ -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