Closed hvr closed 6 years ago
@afcowie for that you have two options: either the Paths_
module which gives you a version :: Version
, or just use VERSION_http_streams
, which is a CPP macro (provided by Cabal and GHC) that expands into a string-literal like "1.2.3"
Huh. Turns out I lost the User-Agent
setting code ages ago when I refactored out http-common from http-streams. Oops. Well, I'll restore that, but in another branch. Merging.
Oh, cool. Thanks @hvr . The other thing I was pulling out of the custom Setup.hs was the package version number used for the
User-Agent:
HTTP header. Any idea where I can get that at build time?