[Haskell-cafe] Offline compilation with Stack/Cabal

David Turner dct25-561bs at mythic-beasts.com
Thu Nov 24 09:13:50 UTC 2016


Hi,

Does

    stack build --prefetch --dry-run

get close to what you want? That seems to download all the necessary
packages, and by using stack you get the ability to share compiled
dependencies between packages.

Cheers,

David

On 24 November 2016 at 06:57, Jan von Löwenstein <jan.loewenstein at gmail.com>
wrote:

> Hi,
>
> Consider the following use case:
> I have to ship a Haskell application as source, bundled with its
> dependencies and a script that can produce the binary on a machine without
> internet connectivity.
>
> Is that possible with Stack or Cabal?
> Any pointers would be much appreciated.
>
> Ideally I would like to build each dependency package individually. That
> way I could cache results per Haskell package and don't need to rebuild
> dependencies until they actually change.
>
> Best
> Jan
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20161124/585a8f14/attachment.html>


More information about the Haskell-Cafe mailing list