[commit: Cabal] master: Add a type signature for getPrefixDirRel on Windows (2da1e48)
Ian Lynagh
igloo at earth.li
Wed Apr 27 18:09:19 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/2da1e48c6be7ba85f1f8e8e35e7960e45b1eaac8
>---------------------------------------------------------------
commit 2da1e48c6be7ba85f1f8e8e35e7960e45b1eaac8
Author: Ian Lynagh <igloo at earth.li>
Date: Wed Apr 27 14:58:35 2011 +0000
Add a type signature for getPrefixDirRel on Windows
>---------------------------------------------------------------
Distribution/Simple/Build/PathsModule.hs | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Distribution/Simple/Build/PathsModule.hs b/Distribution/Simple/Build/PathsModule.hs
index b4d69a0..4a569c2 100644
--- a/Distribution/Simple/Build/PathsModule.hs
+++ b/Distribution/Simple/Build/PathsModule.hs
@@ -191,6 +191,7 @@ pkgPathEnvVar pkg_descr var =
get_prefix_win32 :: String
get_prefix_win32 =
+ "getPrefixDirRel :: FilePath -> IO FilePath\n"++
"getPrefixDirRel dirRel = try_size 2048 -- plenty, PATH_MAX is 512 under Win32.\n"++
" where\n"++
" try_size size = allocaArray (fromIntegral size) $ \\buf -> do\n"++
More information about the Cvs-libraries
mailing list