Merge pull request #84 from ffrixslee/issue-46

Issue 46 (various deprecations during compilation of GF)
This commit is contained in:
Inari Listenmaa
2021-06-29 23:48:00 +02:00
committed by GitHub
8 changed files with 27 additions and 17 deletions

View File

@@ -1032,6 +1032,7 @@ instance JSON PGF.Trie where
showJSON (PGF.Ap f [[]]) = makeObj ["fun".=f] -- leaf
-- showJSON (PGF.Ap f [es]) = makeObj ["fun".=f,"children".=es] -- one alternative
showJSON (PGF.Ap f alts) = makeObj ["fun".=f,"alts".=alts]
readJSON = error "PGF.Trie.readJSON intentionally not defined"
instance JSON PGF.CId where
readJSON x = readJSON x >>= maybe (fail "Bad language.") return . PGF.readLanguage