[web-devel] [Yesod] Is there a api which get yesod version?
Felipe Almeida Lessa
felipe.lessa at gmail.com
Tue Dec 21 12:58:52 CET 2010
2010/12/21 Michael Snoyman <michael at snoyman.com>:
> Do you know of any prior art that does this? Having a package import
> files generated by cabal seems like it could cause problems.
Although Cabal's documentation only mentions 'getDataFileName' [1],
the API states that the Paths module should "enable [the packages] to
find their version number" [2]. So that's the intended use, even if
not very well documented. Just remember to put the Paths in
'other-modules' [1].
[1] http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#paths-module
[2] http://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Distribution-Simple-Build-PathsModule.html
Cheers! =)
--
Felipe.
More information about the web-devel
mailing list