
7 Jun
2011
7 Jun
'11
3:20 p.m.
On Jun 7, 2011, at 11:10 AM, Luis Cabellos wrote:
Hello,
I have a question about cabal versioning. It's possible to export in a cabal library a version, so instead of getting version from:
import Paths_my_package( version )
I want to get version from my library using:
import MyPackage( version )
And then using this from programs.
Thanks, Luis
You can export things from one module that are defined in other modules. For example:
module MyPackage ( version, ... ) import Paths_my_package( version ) ...
-- James