@@ -395,7 +395,7 @@ haddock pkg_descr lbi suffixes flags' = do
395
395
396
396
return $ PackageIndex. insert ipi index
397
397
CFLib flib ->
398
- ( when (flag haddockForeignLibs) $ do
398
+ when (flag haddockForeignLibs) ( do
399
399
withTempDirectoryEx verbosity tmpFileOpts (buildDir lbi') " tmp" $
400
400
\ tmp -> do
401
401
smsg
@@ -409,12 +409,11 @@ haddock pkg_descr lbi suffixes flags' = do
409
409
version
410
410
flib
411
411
let libArgs' = commonArgs `mappend` flibArgs
412
- runHaddock verbosity tmpFileOpts comp platform haddockProg True libArgs'
413
- )
412
+ runHaddock verbosity tmpFileOpts comp platform haddockProg True libArgs')
414
413
>> return index
415
- CExe _ -> ( when (flag haddockExecutables) $ smsg >> doExe component) >> return index
416
- CTest _ -> ( when (flag haddockTestSuites) $ smsg >> doExe component) >> return index
417
- CBench _ -> ( when (flag haddockBenchmarks) $ smsg >> doExe component) >> return index
414
+ CExe _ -> when (flag haddockExecutables) ( smsg >> doExe component) >> return index
415
+ CTest _ -> when (flag haddockTestSuites) ( smsg >> doExe component) >> return index
416
+ CBench _ -> when (flag haddockBenchmarks) ( smsg >> doExe component) >> return index
418
417
419
418
for_ (extraDocFiles pkg_descr) $ \ fpath -> do
420
419
files <- matchDirFileGlob verbosity (specVersion pkg_descr) " ." fpath
@@ -937,8 +936,7 @@ renderPureArgs version comp platform args =
937
936
renderInterface :: (FilePath , Maybe FilePath , Maybe FilePath , Visibility ) -> String
938
937
renderInterface (i, html, hypsrc, visibility) =
939
938
" --read-interface="
940
- ++ ( intercalate " ," $
941
- concat
939
+ ++ intercalate " ," (concat
942
940
[ [fromMaybe " " html]
943
941
, -- only render hypsrc path if html path
944
942
-- is given and hyperlinked-source is
@@ -962,8 +960,7 @@ renderPureArgs version comp platform args =
962
960
]
963
961
else []
964
962
, [i]
965
- ]
966
- )
963
+ ])
967
964
968
965
bool a b c = if c then a else b
969
966
isVersion major minor = version >= mkVersion [major, minor]
0 commit comments