[web-devel] [Yesod] Is there a api which get yesod version?
ndmitchell at gmail.com
Tue Dec 21 00:09:06 CET 2010
Can't you use cabal's version field? Cabal will create Paths_yesod,
and include a version number which you can link to.
2010/12/20 Michael Snoyman <michael at snoyman.com>:
> I'm surprised there isn't some kind of cabal CPP macro automatically
> included which has the version.
> As far as the original question: I'd be wary of adding a function with
> the Yesod version number, because I can almost guarantee that I will
> forget to update the string when I release new versions ;).
> 2010/12/20 Max Cantor <mxcantor at gmail.com>:
>> It wouldn't be pretty, at all, but you might be able to throw something together with the cabal CPP macros that cabal will generate here: dist/build/autogen/cabal_macros.h
>> On Dec 20, 2010, at 1:28 PM, いとうかつとし wrote:
>>> i'd like to display like as "powered by Yesod ver 0.6.7" on footer of my application.
>>> Is there an api?
>>> web-devel mailing list
>>> web-devel at haskell.org
>> web-devel mailing list
>> web-devel at haskell.org
> web-devel mailing list
> web-devel at haskell.org
More information about the web-devel