From d63be8ac7287a7c220f62701cb5b200ba57fbbeb Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 25 Oct 2009 15:20:44 +0000 Subject: small refactoring in GF.Compile.CheckGrammar --- src/GF/Compile/Optimize.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/GF/Compile/Optimize.hs') diff --git a/src/GF/Compile/Optimize.hs b/src/GF/Compile/Optimize.hs index c5b244903..c4ea4ae34 100644 --- a/src/GF/Compile/Optimize.hs +++ b/src/GF/Compile/Optimize.hs @@ -104,10 +104,10 @@ evalCncInfo opts gr cnc abs (c,info) = do return (CncCat ptyp pde' ppr') - CncFun (mt@(Just (_,ty@(cont,val)))) pde ppr -> --trace (prt c) $ + CncFun (mt@(Just (_,cont,val))) pde ppr -> --trace (prt c) $ eIn (text "linearization in type" <+> ppTerm Unqualified 0 (mkProd cont val []) $$ text "of function") $ do pde' <- case pde of - Just de -> liftM Just $ pEval ty de + Just de -> liftM Just $ pEval (cont,val) de Nothing -> return pde ppr' <- liftM Just $ evalPrintname gr c ppr pde' return $ CncFun mt pde' ppr' -- only cat in type actually needed -- cgit v1.2.3