for profiling, a little changes #8
Annotations
1 error and 2 warnings
hlint
HLint failed with status: 1. Suggestion (1)
|
hlint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: haskell/actions/hlint-setup@v2, haskell/actions/hlint-run@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
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"
|