Skip to content

fix for profiled ghc #7

fix for profiled ghc

fix for profiled ghc #7

Triggered via push January 23, 2024 18:52
Status Failure
Total duration 1m 21s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 1 warning
hlint
HLint failed with status: 1. Suggestion (1)
hlint: Cabal/src/Distribution/Simple/GHC.hs#L778
Suggestion in buildOrReplLib in module Distribution.Simple.GHC: Use guards ▫︎ Found: "buildVanillaShared\n = if not has_code then\n vanilla\n else\n if useDynToo then\n do runGhcProg vanillaSharedOpts\n case (hpcdir Hpc.Dyn, hpcdir Hpc.Vanilla) of\n (Flag dynDir, Flag vanillaDir)\n -> copyDirectoryRecursive verbosity dynDir vanillaDir\n _ -> return ()\n else\n if isGhcDynamic then\n do shared\n vanilla\n else\n do vanilla\n shared" ▫︎ Perhaps: "buildVanillaShared\n | not has_code = vanilla\n | useDynToo\n = do runGhcProg vanillaSharedOpts\n case (hpcdir Hpc.Dyn, hpcdir Hpc.Vanilla) of\n (Flag dynDir, Flag vanillaDir)\n -> copyDirectoryRecursive verbosity dynDir vanillaDir\n _ -> return ()\n | isGhcDynamic\n = do shared\n vanilla\n | otherwise\n = do vanilla\n shared"