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@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@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@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@haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe