[Haskell-cafe] Embedding version info in executables
michael at snoyman.com
Fri Jul 11 11:27:56 UTC 2014
I've used the same technique as Erik in the past. More recently, we've had
Jenkins output a minimal Haskell file with a string literal containing the
Jenkins build ID and timestamp.
On Fri, Jul 11, 2014 at 12:38 PM, Erik Hesselink <hesselink at gmail.com>
> We use template haskell to embed the git revision into the executable.
> You could probably do the same for the build time. Be aware that if no
> sources have changed, cabal won't recompile the module so you'd end up
> with the old git revision/build time.
> On Fri, Jul 11, 2014 at 11:28 AM, Vo Minh Thu <noteed at gmail.com> wrote:
> > Hi Roman,
> > I am using this solution:
> > http://www.hyperedsoftware.com/blog/entries/build-info-gen.html
> > Cheers,
> > Thu
> > 2014-07-11 11:26 GMT+02:00 Roman Cheplyaka <roma at ro-che.info>:
> >> What are existing solutions for embedding version info (git revision,
> >> date/time, versions of dependencies) in Haskell programs?
> >> Roman
> >> _______________________________________________
> >> Haskell-Cafe mailing list
> >> Haskell-Cafe at haskell.org
> >> http://www.haskell.org/mailman/listinfo/haskell-cafe
> > _______________________________________________
> > Haskell-Cafe mailing list
> > Haskell-Cafe at haskell.org
> > http://www.haskell.org/mailman/listinfo/haskell-cafe
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe