From af831e01a7baf6de9ac3a475368f7315c99797a7 Mon Sep 17 00:00:00 2001 From: krasimir Date: Mon, 21 Sep 2009 06:56:39 +0000 Subject: refactoring in GF.Grammar.Macros --- src/GF/Grammar/CF.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GF/Grammar/CF.hs') diff --git a/src/GF/Grammar/CF.hs b/src/GF/Grammar/CF.hs index 2a94bbfdb..a1d716994 100644 --- a/src/GF/Grammar/CF.hs +++ b/src/GF/Grammar/CF.hs @@ -110,7 +110,7 @@ cf2cat (_,(cat, items)) = map identS $ cat : [c | Left c <- items] cf2rule :: CFRule -> ((Ident,Info),(Ident,Info)) cf2rule (fun, (cat, items)) = (def,ldef) where f = identS fun - def = (f, AbsFun (Just (mkProd (args', Cn (identS cat), []))) Nothing Nothing) + def = (f, AbsFun (Just (mkProd args' (Cn (identS cat)) [])) Nothing Nothing) args0 = zip (map (identS . ("x" ++) . show) [0..]) items args = [((Explicit,v), Cn (identS c)) | (v, Left c) <- args0] args' = [(Explicit,identS "_", Cn (identS c)) | (_, Left c) <- args0] -- cgit v1.2.3