[Haskell-cafe] Embedding version info in executables

Michael Snoyman 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>
wrote:

> 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.
>
> Regards,
>
> Erik
>
> 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,
> build
> >> 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
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140711/e20159c3/attachment.html>


More information about the Haskell-Cafe mailing list