patch applied (cabal): Import FilePath.dropDrive for hugs and GHC>6.6. In all other cases, provide our own.

Ross Paterson ross at soi.city.ac.uk
Fri Aug 24 16:25:51 EDT 2007


On Fri, Aug 24, 2007 at 09:00:55PM +0200, Clemens Fruhwirth wrote:
> At Fri, 24 Aug 2007 19:30:20 +0100,
> "Neil Mitchell" <ndmitchell at gmail.com> wrote:
> 
> > In GHC 6.6.1, dropDrive is not available, it will only be the next release.
> 
> What would be a more appropriate variable to check?
> __GLASGOW_HASKELL__ only includes the major and minor number but not
> the patch level. We could change the check to default to the compat
> version for the whole GHC 6.6.x series (which wouldn't hurt that much
> as dropDrive isn't that huge)

What you did was correct: __GLASGOW_HASKELL__ is 606 for all the 6.6.x
releases, none of which have dropDrive.  The define doesn't distinguish
patch levels, because they are guaranteed to have the same API.


More information about the cabal-devel mailing list