@@ -10,6 +10,7 @@ import Idris.REPL
10import Idris.Error
10import Idris.Error
11import Idris.CmdOptions
11import Idris.CmdOptions
12import Idris.Info
12import Idris.Info
13+import Idris.Info.Show
13import Idris.Package
14import Idris.Package
@@ -28,11 +29,11 @@ main = do opts <- runArgParser
28runIdris :: [Opt] -> Idris ()
29runIdris :: [Opt] -> Idris ()
29runIdris opts = do
30runIdris opts = do
30 runIO setupBundledCC
31 runIO setupBundledCC
31− when (ShowLoggingCats `elem` opts) $ runIO showLoggingCats
32+ when (ShowLoggingCats `elem` opts) $ runIO showIdrisLoggingCategories
32− when (ShowIncs `elem` opts) $ runIO showIncs
33+ when (ShowIncs `elem` opts) $ runIO showIdrisFlagsInc
33− when (ShowLibs `elem` opts) $ runIO showLibs
34+ when (ShowLibs `elem` opts) $ runIO showIdrisFlagsLibs
34− when (ShowLibdir `elem` opts) $ runIO showLibdir
35+ when (ShowLibdir `elem` opts) $ runIO showIdrisLibDir
35− when (ShowPkgs `elem` opts) $ runIO showPkgs
36+ when (ShowPkgs `elem` opts) $ runIO showIdrisInstalledPackages
36 case opt getClient opts of
37 case opt getClient opts of
37 [] -> return ()
38 [] -> return ()
38 (c:_) -> do setVerbose False
39 (c:_) -> do setVerbose False
@@ -61,27 +62,3 @@ runIdris opts = do
61 [f] -> replPkg opts f
62 [f] -> replPkg opts f
62 _ -> ifail "Too many packages"
63 _ -> ifail "Too many packages"
63 fs -> runIO $ mapM_ (buildPkg opts (WarnOnly `elem` opts)) fs
64 fs -> runIO $ mapM_ (buildPkg opts (WarnOnly `elem` opts)) fs
66−showLibs = do libFlags <- getIdrisFlagsLib
67− putStrLn $ unwords libFlags
71−showLibdir = do putStrLn =<< getIdrisLibDir
75−showIncs = do incFlags <- getIdrisFlagsInc
76− putStrLn $ unwords incFlags
79−-- | List idris packages installed
81−showPkgs = do mapM_ putStrLn =<< getIdrisInstalledPackages
84−showLoggingCats :: IO b
86− mapM_ putStrLn =<< getIdrisLoggingCategories