[Haskell-cafe] Embedding version info in executables

Erik Hesselink hesselink at gmail.com
Fri Jul 11 09:38:41 UTC 2014


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


More information about the Haskell-Cafe mailing list