cosmetic change.
This commit is contained in:
parent
cea624aece
commit
c047b9523b
8
Check.hs
8
Check.hs
@ -21,10 +21,6 @@ checkSyntax _ file = unlines <$> check file
|
|||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
-- I don't know why, but parseDynamicFlags must be used.
|
|
||||||
cmdOptions :: [Located String]
|
|
||||||
cmdOptions = map noLoc ["-Wall","-fno-warn-unused-do-bind"]
|
|
||||||
|
|
||||||
check :: String -> IO [String]
|
check :: String -> IO [String]
|
||||||
check fileName = ghandle ignore $ runGhc (Just libdir) $ do
|
check fileName = ghandle ignore $ runGhc (Just libdir) $ do
|
||||||
ref <- liftIO $ newIORef []
|
ref <- liftIO $ newIORef []
|
||||||
@ -44,6 +40,10 @@ check fileName = ghandle ignore $ runGhc (Just libdir) $ do
|
|||||||
ignore :: SomeException -> IO [String]
|
ignore :: SomeException -> IO [String]
|
||||||
ignore _ = return []
|
ignore _ = return []
|
||||||
|
|
||||||
|
-- I don't know why, but parseDynamicFlags must be used.
|
||||||
|
cmdOptions :: [Located String]
|
||||||
|
cmdOptions = map noLoc ["-Wall","-fno-warn-unused-do-bind"]
|
||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
refLogger :: IORef [String] -> WarnErrLogger
|
refLogger :: IORef [String] -> WarnErrLogger
|
||||||
|
Loading…
Reference in New Issue
Block a user