[Haskell-beginners] Stack and packages not in the snapshot

Thomas Koster tkoster at gmail.com
Mon Aug 31 06:24:09 UTC 2015


On Mon, Aug 31, 2015 at 3:16 AM, Thomas Koster <tkoster at gmail.com> 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 <michael at snoyman.com> 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


More information about the Beginners mailing list