| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PbtCli.Doctor
Description
pbt-cli doctor: check that everything the tool needs is present and that
the repository in front of it is actually discoverable.
Modelled on the --check-health mode of the shell tools it replaces, with the
same rule about what counts as a failure: only a missing *required* dependency
or an undiscoverable root is an error. Version strings are informational and
no minimum is ever enforced, because pbt-cli only shells out to cabal and
does not care which version answers.
Documentation
doctor :: FilePath -> IO ExitCode Source #
Run every check against root, print an aligned report, and return the
exit code: ExitFailure 1 if anything is Missing.