From 49c17be41a7d572d27df74eb7351b672e85953a1 Mon Sep 17 00:00:00 2001 From: aarne Date: Wed, 5 Nov 2003 14:42:29 +0000 Subject: working with interfaces --- src/GF/Compile/Compile.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GF/Compile/Compile.hs') diff --git a/src/GF/Compile/Compile.hs b/src/GF/Compile/Compile.hs index a1b1758fb..edd75ef6b 100644 --- a/src/GF/Compile/Compile.hs +++ b/src/GF/Compile/Compile.hs @@ -186,18 +186,19 @@ generateModuleCode opts path minfo@(name,info) = do -- for resource, also emit gfr case info of - ModMod m | isResourceModule info && isCompilableModule info && emit && nomulti -> do + ModMod m | isResourceModule info && isCompilable info && emit && nomulti -> do let (file,out) = (gfrFile pname, prGrammar (MGrammar [minfo])) ioeIO $ writeFile file out >> putStr (" wrote file" +++ file) _ -> return () (file,out) <- do code <- return $ MkGFC.prCanonModInfo minfo' return (gfcFile pname, code) - if isCompilableModule info && emit && nomulti + if isCompilable info && emit && nomulti then ioeIO $ writeFile file out >> putStr (" wrote file" +++ file) else ioeIO $ putStrFlush "no need to save for this module " return minfo' where + isCompilable _ = True ---- isCompilableModule ---- emit code for interfaces nomulti = not $ oElem makeMulti opts emit = oElem emitCode opts optim = oElem optimizeCanon opts -- cgit v1.2.3