[Hackage] #823: Accessing the package version from within the package

Hackage cvs-ghc at haskell.org
Sat Mar 26 00:34:41 CET 2011


#823: Accessing the package version from within the package
----------------------------+-----------------------------------------------
  Reporter:  basvandijk     |        Owner:         
      Type:  enhancement    |       Status:  new    
  Priority:  normal         |    Milestone:         
 Component:  Cabal library  |      Version:  1.8.0.6
  Severity:  normal         |     Keywords:         
Difficulty:  unknown        |   Ghcversion:         
  Platform:                 |  
----------------------------+-----------------------------------------------

Comment(by AntoineLatter):

 Maybe I'm miss-understanding, but this feature already exists exactly as
 you've described.

 Paths_$pkgname.version :: Version

 is exported by default.

 I'm not sure in which version it was introduced, and the user guide makes
 no mention of the feature.

 Here's the code in 1.10:

 http://www.haskell.org/ghc/docs/7.0.2/html/libraries/Cabal-1.10.1.0/src
 /Distribution-Simple-Build-PathsModule.html

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/823#comment:1>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list