Filter out record fields which don't exist in lintype

This is to work around an inconsistency in the canonical representation
This commit is contained in:
John J. Camilleri
2021-02-19 15:19:40 +01:00
parent 9f3f4139b1
commit 5ad5789b31
2 changed files with 30 additions and 11 deletions

View File

@@ -48,11 +48,11 @@ doGrammar' gname cncs = do
-- Compile LPGF
lpgf <- compileToLPGF noOptions mods
writeLPGF noOptions lpgf
path <- writeLPGF noOptions lpgf
putStrLn ""
-- Read back from file
lpgf <- readLPGF $ gname ++ ".lpgf"
lpgf <- readLPGF path
-- Read treebank
gs <- groups . lines <$> readFile (dir </> gname <.> "treebank")