-l for check.

This commit is contained in:
Kazu Yamamoto
2014-04-18 17:28:12 +09:00
parent 9a6c84410d
commit 4389dea800
4 changed files with 13 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ checkSyntax :: Options
-> [FilePath] -- ^ The target files.
-> IO String
checkSyntax _ _ [] = error "ghc-mod: checkSyntax: No files given"
checkSyntax opt cradle files = unlines <$> withGHC sessionName (check opt cradle files)
checkSyntax opt cradle files = convert opt <$> withGHC sessionName (check opt cradle files)
where
sessionName = case files of
[file] -> file