File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -89,16 +89,13 @@ def _haskell_doc_aspect_impl(target, ctx):
89
89
html_dir = ctx .actions .declare_directory (html_dir_raw )
90
90
haddock_file = ctx .actions .declare_file (_get_haddock_path (package_id ))
91
91
92
- # XXX Haddock really wants a version number, so invent one from
93
- # thin air. See https://github.com/haskell/haddock/issues/898.
92
+ args = ctx .actions .args ()
93
+ args .add ("--package-name={0}" .format (package_id ))
94
+
94
95
if target [HaskellLibraryInfo ].version :
95
96
version = target [HaskellLibraryInfo ].version
96
- else :
97
- version = "0"
97
+ args .add ("--package-version={0}" .format (version ))
98
98
99
- args = ctx .actions .args ()
100
- args .add ("--package-name={0}" .format (package_id ))
101
- args .add ("--package-version={0}" .format (version ))
102
99
args .add_all ([
103
100
"-D" ,
104
101
haddock_file .path ,
You can’t perform that action at this time.
0 commit comments