Skip to content

Commit 86dabda

Browse files
committed
Allow arguments to be passed to Setup.hs haddock for build-type:configure
In the course of 4466310 (see #5526) the `Setup.hs haddock` CLI was extended to allow component ids to be passed as positional arguments. However, `autoconfUserHooks` which is used in case of `build-type: Configure` wasn't updated accordingly, and consequently this caused `new-haddock` to break for packages using `Configure`. cc @alexbiehl Fixes #5503
1 parent a23e8ac commit 86dabda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cabal/Distribution/Simple.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ autoconfUserHooks
668668
preClean = readHook cleanVerbosity cleanDistPref,
669669
preInst = readHook installVerbosity installDistPref,
670670
preHscolour = readHook hscolourVerbosity hscolourDistPref,
671-
preHaddock = readHook haddockVerbosity haddockDistPref,
671+
preHaddock = readHookWithArgs haddockVerbosity haddockDistPref,
672672
preReg = readHook regVerbosity regDistPref,
673673
preUnreg = readHook regVerbosity regDistPref
674674
}

0 commit comments

Comments
 (0)