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

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to