@@ -105,7 +105,7 @@ loadIBC reexport fp
105105 Nothing -> True
106106 Just p -> not p && reexport
107107 when redo $
108− do iLOG $ "Loading ibc " ++ fp ++ " " ++ show reexport
108+ do logLvl 1 $ "Loading ibc " ++ fp ++ " " ++ show reexport
109109 archiveFile <- runIO $ B.readFile fp
110110 case toArchiveOrFail archiveFile of
111111 Left _ -> ifail $ fp ++ " isn't loadable, it may have an old ibc format.\n"
@@ -180,7 +180,7 @@ writeArchive fp i = do let a = L.foldl (\x y -> addEntryToArchive y x) emptyArch
180180
181181writeIBC :: FilePath -> FilePath -> Idris ()
182182writeIBC src f
183− = do iLOG $ "Writing ibc " ++ show f
183+ = do logLvl 1 $ "Writing ibc " ++ show f
184184 i <- getIState
185185-- case (Data.List.map fst (idris_metavars i)) \\ primDefs of
186186-- (_:_) -> ifail "Can't write ibc when there are unsolved metavariables"
@@ -189,8 +189,8 @@ writeIBC src f
189189 ibcf <- mkIBC (ibc_write i) (initIBC { sourcefile = src })
190190 idrisCatch (do runIO $ createDirectoryIfMissing True (dropFileName f)
191191 writeArchive f ibcf
192− iLOG "Written")
193− (\c -> do iLOG $ "Failed " ++ pshow i c)
192+ logLvl 1 "Written")
193+ (\c -> do logLvl 1 $ "Failed " ++ pshow i c)
194194 return ()
195195
196196-- Write a package index containing all the imports in the current IState
@@ -199,14 +199,14 @@ writePkgIndex :: FilePath -> Idris ()
199199writePkgIndex f
200200 = do i <- getIState
201201 let imps = map (\ (x, y) -> (True, x)) $ idris_imported i
202− iLOG $ "Writing package index " ++ show f ++ " including\n" ++
202+ logLvl 1 $ "Writing package index " ++ show f ++ " including\n" ++
203203 show (map snd imps)
204204 resetNameIdx
205205 let ibcf = initIBC { ibc_imports = imps }
206206 idrisCatch (do runIO $ createDirectoryIfMissing True (dropFileName f)
207207 writeArchive f ibcf
208− iLOG "Written")
209− (\c -> do iLOG $ "Failed " ++ pshow i c)
208+ logLvl 1 "Written")
209+ (\c -> do logLvl 1 $ "Failed " ++ pshow i c)
210210 return ()
211211
212212mkIBC :: [IBCWrite] -> IBCFile -> Idris IBCFile
@@ -305,7 +305,7 @@ process :: Bool -- ^ Reexporting
305305process reexp i fn = do
306306 ver <- getEntry 0 "ver" i
307307 when (ver /= ibcVersion) $ do
308− iLOG "ibc out of date"
308+ logLvl 1 "ibc out of date"
309309 let e = if ver < ibcVersion
310310 then " an earlier " else " a later "
311311 ifail $ "Incompatible ibc version.\nThis library was built with"
@@ -395,12 +395,12 @@ pImports fs
395395 ids <- allImportDirs
396396 fp <- findImport ids ibcsd f
397397-- if (f `elem` imported i)
398−-- then iLOG $ "Already read " ++ f
398+-- then logLvl 1 $ "Already read " ++ f
399399 putIState (i { imported = f : imported i })
400400 case fp of
401− LIDR fn -> do iLOG $ "Failed at " ++ fn
401+ LIDR fn -> do logLvl 1 $ "Failed at " ++ fn
402402 ifail "Must be an ibc"
403− IDR fn -> do iLOG $ "Failed at " ++ fn
403+ IDR fn -> do logLvl 1 $ "Failed at " ++ fn
404404 ifail "Must be an ibc"
405405 IBC fn src -> loadIBC re fn)
406406 fs
@@ -491,13 +491,13 @@ pDefs reexp syms ds
491491 do d' <- updateDef d
492492 case d' of
493493 TyDecl _ _ -> return ()
494− _ -> do iLOG $ "SOLVING " ++ show n
494+ _ -> do logLvl 1 $ "SOLVING " ++ show n
495495 solveDeferred n
496496 updateIState (\i -> i { tt_ctxt = addCtxtDef n d' (tt_ctxt i) })
497497-- logLvl 1 $ "Added " ++ show (n, d')
498− if (not reexp) then do iLOG $ "Not exporting " ++ show n
498+ if (not reexp) then do logLvl 1 $ "Not exporting " ++ show n
499499 setAccessibility n Hidden
500− else iLOG $ "Exporting " ++ show n) ds
500+ else logLvl 1 $ "Exporting " ++ show n) ds
501501 where
502502 updateDef (CaseOp c t args o s cd)
503503 = do o' <- mapM updateOrig o