Re: building a project with new-* commands

2016-09-16 Thread Ramakrishnan Muthukrishnan
On Fri, Sep 16, 2016, at 06:08 PM, Herbert Valerio Riedel wrote:
> Hi!
> 
> On 2016-09-16 at 14:34:14 +0200, Ramakrishnan Muthukrishnan wrote:
> [..]
> 
> > I will try building and trying the `master' branch. Thanks again.
> 
> That's generally recommended with new-build at this point, since a lot
> of things have improved in cabal 1.25/master since cabal 1.24;

That did the trick. Thanks.

Cheers
-- 
  Ramakrishnan
___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel


Re: building a project with new-* commands

2016-09-16 Thread Ramakrishnan Muthukrishnan
On Fri, Sep 16, 2016, at 06:08 PM, Herbert Valerio Riedel wrote:
> Hi!
> 
> On 2016-09-16 at 14:34:14 +0200, Ramakrishnan Muthukrishnan wrote:
> [..]
> 
> > I will try building and trying the `master' branch. Thanks again.
> 
> That's generally recommended with new-build at this point, since a lot
> of things have improved in cabal 1.25/master since cabal 1.24;
> 
> Also, I'd also recommend consulting
> 
>   http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html
> 
> for the latest bleeding edge documentation from `master`; if you notice
> something that's unclear in the documentation, it's a documentation bug
> and you should either inform us about it, or maybe even provide a
> pull-request!

Thanks Herbert.

-- 
  Ramakrishnan
___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel


Re: building a project with new-* commands

2016-09-16 Thread Herbert Valerio Riedel
Hi!

On 2016-09-16 at 14:34:14 +0200, Ramakrishnan Muthukrishnan wrote:
[..]

> I will try building and trying the `master' branch. Thanks again.

That's generally recommended with new-build at this point, since a lot
of things have improved in cabal 1.25/master since cabal 1.24;

Also, I'd also recommend consulting

  http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html

for the latest bleeding edge documentation from `master`; if you notice
something that's unclear in the documentation, it's a documentation bug
and you should either inform us about it, or maybe even provide a
pull-request!


Thanks
___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel


Re: building a project with new-* commands

2016-09-16 Thread Ramakrishnan Muthukrishnan
Hi Lennart,

Thanks for the email. Sorry, I wrongly wrote the path "dist" when I
meant "dist-newstyle". When I created a fresh project, just doing `cabal
new-build' created a binary. Here is what I get in my blog directory.

ram@knuth:~/src/newblog$ cabal new-configure
Resolving dependencies...
In order, the following would be built (use -v for more details):
zip-archive-0.3.0.5
pandoc-1.17.2
pandoc-citeproc-0.10.1
hakyll-4.8.3.2
rkrishnan-0.0.1
ram@knuth:~/src/newblog$ cabal new-build .
In order, the following will be built (use -v for more details):
zip-archive-0.3.0.5
pandoc-1.17.2
pandoc-citeproc-0.10.1
hakyll-4.8.3.2
rkrishnan-0.0.1
Configuring zip-archive-0.3.0.5...
ram@knuth:~/src/newblog$ ls dist-newstyle/build/
ram@knuth:~/src/newblog$ cd ..
ram@knuth:~/src$ cabal new-build ./new-blog/
BadPackageLocations [BadLocGlobEmptyMatch "./*.cabal"]

I will try building and trying the `master' branch. Thanks again.

Cheers
Ramakrishnan


On Fri, Sep 16, 2016, at 05:53 PM, lennart spitzner wrote:
> The build artefacts of new-* are placed in a "dist-newstyle" directory.
> 
> Another common mistake with 1.24.0.0 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 1.24.0.0 (for both) with
> > GHC 8.0.1 on Debian GNU/Linux x86-64.
> > 
> > Thanks
> > 
> 


-- 
  Ramakrishnan
___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel


Re: building a project with new-* commands

2016-09-16 Thread lennart spitzner
The build artefacts of new-* are placed in a "dist-newstyle" directory.

Another common mistake with 1.24.0.0 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 1.24.0.0 (for both) with
> GHC 8.0.1 on Debian GNU/Linux x86-64.
> 
> Thanks
> 

___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel


building a project with new-* commands

2016-09-16 Thread Ramakrishnan Muthukrishnan
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 1.24.0.0 (for both) with
GHC 8.0.1 on Debian GNU/Linux x86-64.

Thanks
-- 
  Ramakrishnan
___
cabal-devel mailing list
cabal-devel@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel