Skip to content

Haddock attributes of a module to determine the visibility #145

Haddock attributes of a module to determine the visibility

Haddock attributes of a module to determine the visibility #145

Triggered via pull request December 5, 2024 21:20
Status Success
Total duration 18s
Artifacts

linting.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
fourmolu
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
hlint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
hlint: src/PrintApi/CLI/Cmd/Dump.hs#L181
Suggestion in extractModuleDeclarations in module PrintApi.CLI.Cmd.Dump: Move guards forward ▫︎ Found: "[pprTyThing ss thing $$ extras |\n thing <- things,\n let ss = mkShowSub mod_info,\n let extras\n = case thing of\n ATyCon tycon\n | Just cls <- tyConClass_maybe tycon\n -> nest\n 2 (text \"{-# MINIMAL\" <+> ppr (classMinimalDef cls) <+> text \"#-}\")\n _ -> empty]" ▫︎ Perhaps: "[pprTyThing ss thing $$ extras |\n let ss = mkShowSub mod_info,\n thing <- things,\n let extras\n = case thing of\n ATyCon tycon\n | Just cls <- tyConClass_maybe tycon\n -> nest\n 2 (text \"{-# MINIMAL\" <+> ppr (classMinimalDef cls) <+> text \"#-}\")\n _ -> empty]"