cosmetic change.
This commit is contained in:
parent
7ec9fc1ffb
commit
d98e053bc5
@ -73,8 +73,8 @@ getGHCOptions ghcOptions binfo = ghcOptions ++ exts ++ [lang] ++ libs ++ libDirs
|
|||||||
cabalBuildInfo :: GenericPackageDescription -> BuildInfo
|
cabalBuildInfo :: GenericPackageDescription -> BuildInfo
|
||||||
cabalBuildInfo pd = fromJust $ fromLibrary pd <|> fromExecutable pd
|
cabalBuildInfo pd = fromJust $ fromLibrary pd <|> fromExecutable pd
|
||||||
where
|
where
|
||||||
fromLibrary c = libBuildInfo . condTreeData <$> condLibrary c
|
fromLibrary c = libBuildInfo . condTreeData <$> condLibrary c
|
||||||
fromExecutable c = buildInfo . condTreeData . snd <$> listToMaybe (condExecutables c)
|
fromExecutable c = buildInfo . condTreeData . snd <$> listToMaybe (condExecutables c)
|
||||||
|
|
||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -170,4 +170,4 @@ canCheckFast :: ModuleGraph -> Bool
|
|||||||
canCheckFast = not . any (hasTHorQQ . ms_hspp_opts)
|
canCheckFast = not . any (hasTHorQQ . ms_hspp_opts)
|
||||||
where
|
where
|
||||||
hasTHorQQ :: DynFlags -> Bool
|
hasTHorQQ :: DynFlags -> Bool
|
||||||
hasTHorQQ dflags = any (\opt -> xopt opt dflags) [Opt_TemplateHaskell, Opt_QuasiQuotes]
|
hasTHorQQ dflags = any (`xopt` dflags) [Opt_TemplateHaskell, Opt_QuasiQuotes]
|
||||||
|
Loading…
Reference in New Issue
Block a user