1
0
forked from GitHub/gf-core

small refactoring in GF.Compile.CheckGrammar

This commit is contained in:
krasimir
2009-10-25 15:20:44 +00:00
parent 98cf0ea180
commit 038b2c9f2d
4 changed files with 80 additions and 109 deletions

View File

@@ -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