From 8dfaf2ef65915e7ac91139155d60df85ed66adbb Mon Sep 17 00:00:00 2001 From: hallgren Date: Fri, 22 Aug 2014 00:30:33 +0000 Subject: Command line flag -s/-q now silences all warnings These flags now do what the say. --- src/compiler/GF/CompileOne.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/compiler/GF/CompileOne.hs') diff --git a/src/compiler/GF/CompileOne.hs b/src/compiler/GF/CompileOne.hs index c99430079..5310a7ebb 100644 --- a/src/compiler/GF/CompileOne.hs +++ b/src/compiler/GF/CompileOne.hs @@ -20,7 +20,7 @@ import GF.Grammar.Binary(decodeModule,encodeModule) import GF.Infra.Option import GF.Infra.UseIO(FullPath,IOE,isGFO,gf2gfo,liftIO,ePutStrLn,putPointE,putStrE) -import GF.Infra.CheckM(runCheck) +import GF.Infra.CheckM(runCheck') import GF.Data.Operations(liftErr,(+++)) import GF.System.Directory(doesFileExist,getCurrentDirectory) @@ -67,7 +67,7 @@ reuseGFO opts srcgr file = let sm1 = unsubexpModule sm0 cwd <- getCurrentDirectory (sm,warnings) <- -- putPointE Normal opts "creating indirections" $ - runCheck $ extendModule cwd srcgr sm1 + runCheck' opts $ extendModule cwd srcgr sm1 warnOut opts warnings if flag optTagsOnly opts @@ -114,7 +114,7 @@ compileSourceModule opts cwd mb_gfFile gr = putpp s = if null s then id else putPointE Verbose opts (" "++s++" ") -- * Running a compiler pass, with impedance matching - runPass = runPass' fst fst snd (liftErr . runCheck) + runPass = runPass' fst fst snd (liftErr . runCheck' opts) runPassE = runPass2e liftErr runPassI = runPass2e id id Canon runPass2e lift f = runPass' id f (const "") lift -- cgit v1.2.3