Applicative hack.

This commit is contained in:
Kazu Yamamoto
2012-01-23 18:30:07 +09:00
parent cc6a2d7070
commit 34d22ee1d5
3 changed files with 54 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ main = flip catches handlers $ do
mods <- listModules opt
langs <- listLanguages opt
flags <- listFlags opt
pre <- browseModule opt "Prelude"
pre <- concat <$> mapM (browseModule opt) preBrowsedModules
return $ mods ++ langs ++ flags ++ pre
cmd -> throw (NoSuchCommand cmd)
putStr res
@@ -138,3 +138,17 @@ toLisp ms = "(" ++ unwords quoted ++ ")\n"
toPlain :: [String] -> String
toPlain = unlines
----------------------------------------------------------------
preBrowsedModules :: [String]
preBrowsedModules = [
"Prelude"
, "Control.Applicative"
, "Control.Monad"
, "Control.Exception"
, "Data.Char"
, "Data.List"
, "Data.Maybe"
, "System.IO"
]