# cabal new-run
Resolving dependencies...
Build profile: -w ghc-<GHCVER> -O1
In order, the following will be built:
 - ExeAndLib-1.0 (exe:foo) (first run)
Configuring executable 'foo' for ExeAndLib-1.0..
Preprocessing executable 'foo' for ExeAndLib-1.0..
Building executable 'foo' for ExeAndLib-1.0..
# cabal new-run
cabal: The run command is for running executables, but the target 'ExeAndLib' refers to the library ExeAndLib from the package ExeAndLib-1.0.
