tools: be aware of cabal macros when generating haddock