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