
21 Dec
2010
21 Dec
'10
6:58 a.m.
2010/12/21 Michael Snoyman
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.ht... [2] http://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Distribution... Cheers! =) -- Felipe.