Filter out GHC.Prim also for the Haddock step
[ghc-base.git] / Setup.hs
index 78e5626..79c60e9 100644 (file)
--- a/Setup.hs
+++ b/Setup.hs
@@ -22,7 +22,10 @@ main = do let hooks = defaultUserHooks {
                   makefileHook = build_primitive_sources
                                $ filter_modules_hook
                                $ makefileHook defaultUserHooks,
-                  instHook = filter_modules_hook
+                  haddockHook = build_primitive_sources
+                               $ filter_modules_hook
+                               $ haddockHook defaultUserHooks,
+                   instHook = filter_modules_hook
                            $ instHook defaultUserHooks }
           defaultMainWithHooks hooks