[Haskell-cafe] Library Versioning

James Cook mokus at deepbondi.net
Tue Jun 7 17:20:00 CEST 2011


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



More information about the Haskell-Cafe mailing list