1
0
forked from GitHub/gf-core

restore missing case in the JSON instance for BracketedString

This commit is contained in:
Krasimir Angelov
2022-05-31 11:38:02 +02:00
parent 418aa1a2b2
commit 247a48e5bb

View File

@@ -457,6 +457,7 @@ instance JSON BracketedString where
readJSON x = return (Leaf "")
showJSON (Bracket cat fid index fun bs) =
makeObj ["cat".=cat, "fid".=fid, "index".=index, "fun".=fun, "children".=bs]
showJSON BIND = makeObj ["bind".=True]
showJSON (Leaf s) = makeObj ["token".=s]
-- * PGF utilities