[commit: packages/Cabal] ghc-head: Comment. (efd60bc)

git at git.haskell.org git at git.haskell.org
Mon Aug 26 23:30:02 CEST 2013


Repository : ssh://git@git.haskell.org/Cabal

On branch  : ghc-head
Link       : http://git.haskell.org/?p=packages/Cabal.git;a=commit;h=efd60bc3bef4e5513a3c92da6b1ac9da1ae3d9ce

>---------------------------------------------------------------

commit efd60bc3bef4e5513a3c92da6b1ac9da1ae3d9ce
Author: Mikhail Glushenkov <mikhail.glushenkov at gmail.com>
Date:   Mon Aug 19 10:45:43 2013 +0200

    Comment.


>---------------------------------------------------------------

efd60bc3bef4e5513a3c92da6b1ac9da1ae3d9ce
 Cabal/Distribution/Simple/Program/Find.hs |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/Cabal/Distribution/Simple/Program/Find.hs b/Cabal/Distribution/Simple/Program/Find.hs
index 31b703d..ac97939 100644
--- a/Cabal/Distribution/Simple/Program/Find.hs
+++ b/Cabal/Distribution/Simple/Program/Find.hs
@@ -84,6 +84,9 @@ findProgramOnSearchPath verbosity searchpath prog = do
     tryPathElem (ProgramSearchPathDir dir) =
         findFirstExe [ dir </> prog <.> ext | ext <- extensions ]
       where
+        -- Possible improvement: on Windows, read the list of extensions from
+        -- the PATHEXT environment variable. By default PATHEXT is ".com; .exe;
+        -- .bat; .cmd".
         extensions = case buildOS of
                        Windows -> ["", "exe"]
                        _       -> [""]





More information about the ghc-commits mailing list