implement includes options for check

This commit is contained in:
Andrew Sackville-West
2011-08-02 11:18:07 -07:00
parent b09a8fb2ee
commit b6d99e279c
4 changed files with 21 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ check opt fileName = withGHC $ do
clearWarnings
readRef ref
where
options = ["-Wall","-fno-warn-unused-do-bind"]
options = ["-Wall","-fno-warn-unused-do-bind"] ++ map ((++) "-i") (checkIncludes opt)
handleParseError ref e = do
liftIO . writeIORef ref $ errBagToStrList . srcErrorMessages $ e
return Succeeded