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

Fri Aug 24 07:58:16 PDT 2007 Clemens Fruhwirth

Hi Clemens,
In GHC 6.6.1, dropDrive is not available, it will only be the next release.
Thanks
Neil
On 8/24/07, Clemens Fruhwirth
Fri Aug 24 07:58:16 PDT 2007 Clemens Fruhwirth
* Import FilePath.dropDrive for hugs and GHC>6.6. In all other cases, provide our own. M ./Distribution/Simple/InstallDirs.hs -2 +2 _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://www.haskell.org/mailman/listinfo/cabal-devel

At Fri, 24 Aug 2007 19:30:20 +0100,
"Neil Mitchell"
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) -- Fruhwirth Clemens - http://clemens.endorphin.org

On Fri, Aug 24, 2007 at 09:00:55PM +0200, Clemens Fruhwirth wrote:
At Fri, 24 Aug 2007 19:30:20 +0100, "Neil Mitchell"
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.
participants (3)
-
Clemens Fruhwirth
-
Neil Mitchell
-
Ross Paterson