From 19b17dceb6a1882ee779e75b9703d7fd2b93cc95 Mon Sep 17 00:00:00 2001 From: krasimir Date: Tue, 16 Feb 2010 09:34:02 +0000 Subject: no need to keep the list of constructors per category in .gfo --- src/compiler/GF/Grammar/CF.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/GF/Grammar/CF.hs') diff --git a/src/compiler/GF/Grammar/CF.hs b/src/compiler/GF/Grammar/CF.hs index a1d716994..e883d0552 100644 --- a/src/compiler/GF/Grammar/CF.hs +++ b/src/compiler/GF/Grammar/CF.hs @@ -99,9 +99,9 @@ cf2grammar rules = (buildTree abs, buildTree conc, cat) where cat = case rules of (_,(c,_)):_ -> c -- the value category of the first rule _ -> error "empty CF" - cats = [(cat, AbsCat (Just []) (Just [])) | + cats = [(cat, AbsCat (Just [])) | cat <- nub (concat (map cf2cat rules))] ----notPredef cat - lincats = [(cat, CncCat (Just defLinType) Nothing Nothing) | (cat,AbsCat _ _) <- cats] + lincats = [(cat, CncCat (Just defLinType) Nothing Nothing) | (cat,AbsCat _) <- cats] (funs,lins) = unzip (map cf2rule rules) cf2cat :: CFRule -> [Ident] -- cgit v1.2.3