[Haskell-cafe] Offline compilation with Stack/Cabal
tdammers at gmail.com
Thu Nov 24 07:55:59 UTC 2016
Another, rather drastic, solution would be to run a hackage server locally
on the target, and point the relevant DNS entries to localhosts via the
hosts file. Probably not necessary though.
On Nov 24, 2016 8:02 AM, "Ivan Lazar Miljenovic" <ivan.miljenovic at gmail.com>
> On 24 November 2016 at 17: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
> > 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
> > I could cache results per Haskell package and don't need to rebuild
> > dependencies until they actually change.
> I believe (but have not verified) that it is possible with both of
> them to specify local directories where source tarballs can be found.
> Alternatively, both definitely support through various mechanisms to
> be pointed at local unpacked copies of source files (directly in
> stack.yaml files).
> > 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.
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> Only members subscribed via the mailman list are allowed to post.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe