summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-08-22 00:30:33 +0000
committerhallgren <hallgren@chalmers.se>2014-08-22 00:30:33 +0000
commit8dfaf2ef65915e7ac91139155d60df85ed66adbb (patch)
tree3f034a8530ca80348d67560093638bd413e2f517 /src/compiler/GF/Compile
parent21f429caf8c8cb4248457c16abaf0ad4f51c974a (diff)
Command line flag -s/-q now silences all warnings
These flags now do what the say.
Diffstat (limited to 'src/compiler/GF/Compile')
-rw-r--r--src/compiler/GF/Compile/CheckGrammar.hs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/compiler/GF/Compile/CheckGrammar.hs b/src/compiler/GF/Compile/CheckGrammar.hs
index 10cbd4bb9..be6f625a5 100644
--- a/src/compiler/GF/Compile/CheckGrammar.hs
+++ b/src/compiler/GF/Compile/CheckGrammar.hs
@@ -125,8 +125,7 @@ checkCompleteGrammar opts cwd gr (am,abs) (cm,cnc) = checkInModule cwd cnc NoLoc
return $ updateTree (c,CncFun (Just linty) (Just (L NoLoc def)) Nothing Nothing) js
Bad _ -> do noLinOf c
return js
- where noLinOf c = when (verbAtLeast opts Normal) $
- checkWarn ("no linearization of" <+> c)
+ where noLinOf c = checkWarn ("no linearization of" <+> c)
AbsCat (Just _) -> case lookupIdent c js of
Ok (AnyInd _ _) -> return js
Ok (CncCat (Just _) _ _ _ _) -> return js
@@ -157,9 +156,8 @@ checkCompleteGrammar opts cwd gr (am,abs) (cm,cnc) = checkInModule cwd cnc NoLoc
-- | General Principle: only Just-values are checked.
-- A May-value has always been checked in its origin module.
checkInfo :: Options -> FilePath -> SourceGrammar -> SourceModule -> Ident -> Info -> Check Info
-checkInfo opts cwd sgr (m,mo) c info = do
- checkInModule cwd mo NoLoc empty $
- checkReservedId c
+checkInfo opts cwd sgr (m,mo) c info = checkInModule cwd mo NoLoc empty $ do
+ checkReservedId c
case info of
AbsCat (Just (L loc cont)) ->
mkCheck loc "the category" $