
Hi Duncan, In the Cabal-1.4 branch, Distribution.Simple.Haddock, line 143: when (hoogle && isVersion2) $ die $ "haddock 2.x does not support the --hoogle flag." As of earlier today, that is no longer true. We have several options: * Remove the warning all together - it always supported the --hoogle flag, it just never did anything. It should probably have been haddock issuing this warning all along, not cabal. * Make it check for haddock >= 2 && < 2.2 Thoughts? Neil

As a side note, about 2 lines after: let mockFlags | isVersion2 = [] | otherwise = ["-D__HADDOCK__"] Could be written more compactly as: let mockFlags = ["-D__HADDOCK__" | not isVersion2] I love list comprehensions :-) Thanks Neil

On Fri, 2008-06-13 at 18:56 +0100, Neil Mitchell wrote:
Hi Duncan,
In the Cabal-1.4 branch, Distribution.Simple.Haddock, line 143:
when (hoogle && isVersion2) $ die $ "haddock 2.x does not support the --hoogle flag."
As of earlier today, that is no longer true.
Great.
We have several options:
* Remove the warning all together - it always supported the --hoogle flag, it just never did anything.
Yes that was the problem. It confused people: http://hackage.haskell.org/trac/hackage/ticket/249
It should probably have been haddock issuing this warning all along, not cabal.
That would have been nice.
* Make it check for haddock >= 2 && < 2.2
Done.
Fri Jun 13 21:54:45 BST 2008 Duncan Coutts
participants (2)
-
Duncan Coutts
-
Neil Mitchell