File tree 4 files changed +16
-9
lines changed
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 ` .
1
5
## 0.1.1.0
2
6
3
7
* 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:
12
12
| GHC / OS | Ubuntu 22.04 (glibc) | Alpine 3.20 (musl) | macOS 14 |
13
13
| ---| ---| ---| ---|
14
14
| 9.10.1 | ✅ | ✅ | ✅ |
15
- | 9.8.2 | ✅ | ✅ | ✅ |
15
+ | 9.8.4 | ✅ | ✅ | ✅ |
16
16
| 9.6.6 | ✅ | ✅ | ✅ |
17
17
18
18
### Releases
Original file line number Diff line number Diff line change @@ -179,13 +179,16 @@ extractModuleDeclarations moduleName mod_info = do
179
179
let contents =
180
180
vcat $
181
181
[ 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
189
192
]
190
193
pure $ withUserStyle name_ppr_ctx AllTheWay $ hang (modHeader moduleName) 2 contents <> text " "
191
194
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ parseOptions =
40
40
(long " package-name" <> short ' p' <> metavar " PACKAGE NAME" <> help " Name of the package" )
41
41
<*> optional
42
42
(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. " )
44
44
45
45
withInfo :: Parser a -> String -> ParserInfo a
46
46
withInfo opts desc =
You can’t perform that action at this time.
0 commit comments