@@ -316,5 +316,12 @@ in {
316 # this is relevant would be to switch from the bool type to
316 # this is relevant would be to switch from the bool type to
317 # something like an anyBool type, which would merge definitions by
317 # something like an anyBool type, which would merge definitions by
318 # returning true if any is true.
318 # returning true if any is true.
319+ config.components.all = lib.mkMerge (
321+ # Exclude attributes that are likely to have conflicting definitions
322+ # (a common use case for `all` is in `shellFor` and it only has an
324+ builtins.removeAttrs c ["preCheck" "postCheck"]
319− config.components.all = lib.mkMerge (haskellLib.getAllComponents config);
325+ ) (haskellLib.getAllComponents config)