browse takes a list of modules.

This commit is contained in:
Kazu Yamamoto
2010-04-30 16:27:10 +09:00
parent 90d6a70811
commit 20e68337d8
2 changed files with 10 additions and 11 deletions

View File

@@ -2,10 +2,11 @@ module Main where
import Browse
import Check
import Control.Applicative
import Control.Exception hiding (try)
import Lang
import List
import Param
import Lang
import Prelude hiding (catch)
import System.Console.GetOpt
import System.Environment (getArgs)
@@ -50,7 +51,7 @@ main = flip catch handler $ do
args <- getArgs
let (opt,cmdArg) = parseArgs argspec args
res <- case head cmdArg of
"browse" -> browseModule opt (cmdArg !! 1)
"browse" -> concat <$> mapM (browseModule opt) (tail cmdArg)
"list" -> listModules opt
"check" -> checkSyntax opt (cmdArg !! 1)
"lang" -> listLanguages opt