building a project with new-* commands

lennart spitzner lsp at
Fri Sep 16 12:23:17 UTC 2016

The build artefacts of new-* are placed in a "dist-newstyle" directory.

Another common mistake with is that `cabal new-build` won't
do much at all if run in some parent directory. You might need to
`cabal new-build ./my-blog/` and then get the artefacts somewhere
(burried) in ./my-blog/dist-newstyle/...

(I believe there is some improvement regarding behaviour in the parent
directory in master already; certainly was planned.)

Hope that helps.

-- lennart

On 16/09/16 13:40, Ramakrishnan Muthukrishnan wrote:
> I have a fairly simple hakyll based blog website that I usually build
> with cabal sandbox.
> Today I tried the new-configure/new-build commands. It built a bunch of
> dependencies but the dist/build directory is empty. It doesn't look like
> it built the project itself. Subsequent builds are fast as expected. But
> I still don't see anything in dist/build directory. Am I missing
> something or doing something silly? Not sure if this is the right list
> to discuss "user" issues as this is a "devel" list.
> I created a new project with `cabal init' and built it with the new
> style commands and it produced an executable in the expected place.
> The cabal-install/Cabal version I am running is (for both) with
> GHC 8.0.1 on Debian GNU/Linux x86-64.
> Thanks

More information about the cabal-devel mailing list