@@ -281,7 +281,7 @@ Assorted functions for operating on [Haskell.nix][] data. This is
281distinct from `pkgs.haskell.lib` in the current Nixpkgs Haskell
281distinct from `pkgs.haskell.lib` in the current Nixpkgs Haskell
282Infrastructure.
282Infrastructure.
284−### collectComponents and collectComponents'
284+### collectComponents, collectComponents'
286Extracts a selection of components from a Haskell [package set](#package-set).
286Extracts a selection of components from a Haskell [package set](#package-set).
@@ -316,6 +316,12 @@ tests = collectComponents "tests" (package: package.identifier.name == "mypackag
316Will result in moving derivations from `hsPkgs.mypackage.components.tests.unit-tests`
316Will result in moving derivations from `hsPkgs.mypackage.components.tests.unit-tests`
317to `tests.mypackage.unit-tests`.
317to `tests.mypackage.unit-tests`.
319+### collectChecks, collectChecks'
321+These are just like `collectComponents` and `collectComponents'`, except that they collect
322+the `checks` attributes of packages (which aren't components, and so can't be collected
323+by the other functions.
319#### check
325#### check
321This function turns a derivation that builds a test into one to run it.
327This function turns a derivation that builds a test into one to run it.