hlint hack.
This commit is contained in:
parent
42a1ea0a87
commit
d115c1dacb
@ -25,7 +25,7 @@ cabalParseFile = readPackageDescription silent
|
||||
|
||||
-- Causes error, catched in the upper function.
|
||||
cabalBuildInfo :: GenericPackageDescription -> IO BuildInfo
|
||||
cabalBuildInfo pd = do
|
||||
cabalBuildInfo pd =
|
||||
return . fromJust $ fromLibrary pd <|> fromExecutable pd
|
||||
where
|
||||
fromLibrary c = libBuildInfo . condTreeData <$> condLibrary c
|
||||
|
4
Check.hs
4
Check.hs
@ -26,5 +26,5 @@ check opt fileName = withGHC' fileName $ checkIt `gcatch` handleErrMsg
|
||||
_ <- load LoadAllTargets
|
||||
liftIO readLog
|
||||
options
|
||||
| expandSplice opt = ["-w:"] ++ ghcOpts opt
|
||||
| otherwise = ["-Wall"] ++ ghcOpts opt
|
||||
| expandSplice opt = "-w:" : ghcOpts opt
|
||||
| otherwise = "-Wall" : ghcOpts opt
|
||||
|
Loading…
Reference in New Issue
Block a user