Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  Stack and packages not in the snapshot (Thomas Koster)
   2. Re:  Stack and packages not in the snapshot (Michael Snoyman)
   3. Re:  Stack and packages not in the snapshot (Thomas Koster)


----------------------------------------------------------------------

Message: 1
Date: Mon, 31 Aug 2015 10:16:42 +1000
From: Thomas Koster <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Stack and packages not in the snapshot
Message-ID:
        <cag1wh7bd83u1fygi-rabrg4tr5brbxijhzxfagmtx_bdp-+...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Good morning list,

I have started to use stack with Stackage LTS for building my projects
because I like the idea of a stable snapshot of packages known to work
together.

Then I tried to build "x509-util-1.5.2". This package fails to build
and this is already known by upstream.

And lo, "x509-util" is not in Stackage LTS 3.2, which makes sense.

But what surprised me is that stack attempted to build a package not
in the snapshot, when my resolver is "lts-3.2" (and no extra-deps).

Is there a way to configure stack to build packages from the snapshot
only? Or does it already work this way, only trying "x509-util"
because *I* said "stack build x509-util"?

Thanks in advance.
--
Thomas Koster


------------------------------

Message: 2
Date: Mon, 31 Aug 2015 09:16:59 +0300
From: Michael Snoyman <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Stack and packages not in the
        snapshot
Message-ID:
        <caka2jgkvp1zvqv6qwzmyxye7va0wg-u8y73jjtuu77tkhqi...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Your last paragraph is correct: stack will never automatically pull in a
package that's not explicitly added to your build plan (either via snapshot
or extra-deps), but if you run `stack build foo`, it will listen to you and
install it. The exact semantics of this are covered in:

https://github.com/commercialhaskell/stack/wiki/Build-command

On Mon, Aug 31, 2015 at 3:16 AM, Thomas Koster <[email protected]> wrote:

> Good morning list,
>
> I have started to use stack with Stackage LTS for building my projects
> because I like the idea of a stable snapshot of packages known to work
> together.
>
> Then I tried to build "x509-util-1.5.2". This package fails to build
> and this is already known by upstream.
>
> And lo, "x509-util" is not in Stackage LTS 3.2, which makes sense.
>
> But what surprised me is that stack attempted to build a package not
> in the snapshot, when my resolver is "lts-3.2" (and no extra-deps).
>
> Is there a way to configure stack to build packages from the snapshot
> only? Or does it already work this way, only trying "x509-util"
> because *I* said "stack build x509-util"?
>
> Thanks in advance.
> --
> Thomas Koster
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150831/53b57711/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 31 Aug 2015 16:24:09 +1000
From: Thomas Koster <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Stack and packages not in the
        snapshot
Message-ID:
        <cag1wh7bi+1nrf1kf1tggq+cbffu2sdgh-5fnoaagbr5+r2l...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Mon, Aug 31, 2015 at 3:16 AM, Thomas Koster <[email protected]> wrote:
> Is there a way to configure stack to build packages from the snapshot
> only? Or does it already work this way, only trying "x509-util"
> because *I* said "stack build x509-util"?

On 31 August 2015 at 16:16, Michael Snoyman <[email protected]> wrote:
> Your last paragraph is correct: stack will never automatically pull in a
> package that's not explicitly added to your build plan (either via snapshot
> or extra-deps), but if you run `stack build foo`, it will listen to you and
> install it. The exact semantics of this are covered in:
>
> https://github.com/commercialhaskell/stack/wiki/Build-command

Thanks for the clarification.
--
Thomas Koster


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 86, Issue 25
*****************************************

Reply via email to