Skip to content

Built in MIN_VERSION macro support

Pursuant to https://mail.haskell.org/pipermail/ghc-devs/2015-September/010015.html

Recapped here: when preprocessing Haskell source code, we generate a temporary stub header file which defines a number of MIN_VERSION macros, ala what Cabal generates today. Specifically, for every explicitly specified package dependency (via a -package or -package-id argument), we generate a MIN_VERSION_pkgname macro which tests for the version recorded for the package database.

Trac metadata
Trac field Value
Version 7.11
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information