@@ -13,6 +13,7 @@
13 # Additional packages to be added unconditionally
13 # Additional packages to be added unconditionally
14, additional ? _: []
14, additional ? _: []
15, withHoogle ? true
15, withHoogle ? true
16+, withHaddock ? withHoogle
16, exactDeps ? false
17, exactDeps ? false
17, tools ? {}
18, tools ? {}
18, packageSetupDeps ? true
19, packageSetupDeps ? true
@@ -102,6 +103,7 @@ let
102 fullName = args.name or name;
103 fullName = args.name or name;
103 identifier.name = name;
104 identifier.name = name;
104 inherit component;
105 inherit component;
106+ chooseDrv = p: if withHaddock && p ? haddock then p.haddock else p;
106 ghcEnv = ghcForComponent {
108 ghcEnv = ghcForComponent {
107 inherit configFiles;
109 inherit configFiles;