File tree Expand file tree Collapse file tree 4 files changed +16
-9
lines changed
Expand file tree Collapse file tree 4 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1+ ## 0.1.2.0
2+
3+ * Add support for module-level Haddock attribute ` Visibility: Public ` in order to filter modules.
4+ The command-line argument ` --public-only ` can be combined with ` --modules-ignore-list ` .
15## 0.1.1.0
26
37* Add support for user-supplied ignore lists of modules ([ #18 ] ( https://github.com/Kleidukos/print-api/pull/18 ) )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Binaries for the following operating systems and GHC are provided:
1212| GHC / OS | Ubuntu 22.04 (glibc) | Alpine 3.20 (musl) | macOS 14 |
1313| ---| ---| ---| ---|
1414| 9.10.1 | ✅ | ✅ | ✅ |
15- | 9.8.2 | ✅ | ✅ | ✅ |
15+ | 9.8.4 | ✅ | ✅ | ✅ |
1616| 9.6.6 | ✅ | ✅ | ✅ |
1717
1818### Releases
Original file line number Diff line number Diff line change @@ -179,13 +179,16 @@ extractModuleDeclarations moduleName mod_info = do
179179 let contents =
180180 vcat $
181181 [ pprTyThing ss thing $$ extras
182- | thing <- things
183- , let ss = mkShowSub mod_info
184- , let extras = case thing of
185- ATyCon tycon
186- | Just cls <- tyConClass_maybe tycon ->
187- nest 2 (text " {-# MINIMAL" <+> ppr (classMinimalDef cls) <+> text " #-}" )
188- _ -> empty
182+ | let ss = mkShowSub mod_info
183+ , thing <- things
184+ , let extras =
185+ case thing of
186+ ATyCon tycon
187+ | Just cls <- tyConClass_maybe tycon ->
188+ nest
189+ 2
190+ (text " {-# MINIMAL" <+> ppr (classMinimalDef cls) <+> text " #-}" )
191+ _ -> empty
189192 ]
190193 pure $ withUserStyle name_ppr_ctx AllTheWay $ hang (modHeader moduleName) 2 contents <> text " "
191194
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ parseOptions =
4040 (long " package-name" <> short ' p' <> metavar " PACKAGE NAME" <> help " Name of the package" )
4141 <*> optional
4242 (option osPathOption (long " modules-ignore-list" <> metavar " FILE" <> help " Read the file for a list of ignored modules (one per line)" ))
43- <*> switch (long " public-only" )
43+ <*> switch (long " public-only" <> help " Process modules with `Visibility: Public` set in their Haddock attributes. " )
4444
4545withInfo :: Parser a -> String -> ParserInfo a
4646withInfo opts desc =
You can’t perform that action at this time.
0 commit comments