Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
-
485c12b2
by Cheng Shao at 2026-01-21T16:06:54-05:00
4 changed files:
- hadrian/src/Hadrian/Utilities.hs
- hadrian/src/Rules/Docspec.hs
- hadrian/src/Rules/Lint.hs
- hadrian/src/Settings/Builders/RunTest.hs
Changes:
| ... | ... | @@ -19,7 +19,6 @@ module Hadrian.Utilities ( |
| 19 | 19 | copyFile, copyFileUntracked, createFileLink, fixFile,
|
| 20 | 20 | makeExecutable, moveFile, removeFile, createDirectory, copyDirectory,
|
| 21 | 21 | moveDirectory, removeDirectory, removeFile_, writeFileChangedBS,
|
| 22 | - findExecutable,
|
|
| 23 | 22 | |
| 24 | 23 | -- * Diagnostic info
|
| 25 | 24 | Colour (..), ANSIColour (..), putColoured, shouldUseColor,
|
| ... | ... | @@ -691,7 +690,3 @@ renderUnicorn ls = |
| 691 | 690 | ponyPadding = " "
|
| 692 | 691 | boxLines :: [String]
|
| 693 | 692 | boxLines = ["", "", ""] ++ (lines . renderBox $ ls) |
| 694 | - |
|
| 695 | --- Workaround for https://github.com/haskell/directory/issues/180
|
|
| 696 | -findExecutable :: String -> IO (Maybe FilePath)
|
|
| 697 | -findExecutable exe = IO.catch (IO.findExecutable exe) $ \(_ :: IO.IOException) -> pure Nothing |
| ... | ... | @@ -2,6 +2,8 @@ module Rules.Docspec |
| 2 | 2 | ( docspecRules
|
| 3 | 3 | ) where
|
| 4 | 4 | |
| 5 | +import System.Directory (findExecutable)
|
|
| 6 | + |
|
| 5 | 7 | import Base
|
| 6 | 8 | import Context.Path
|
| 7 | 9 | import Settings.Builders.Common
|
| ... | ... | @@ -4,6 +4,7 @@ module Rules.Lint |
| 4 | 4 | |
| 5 | 5 | import Base
|
| 6 | 6 | import Settings.Builders.Common
|
| 7 | +import System.Directory (findExecutable)
|
|
| 7 | 8 | import System.Exit (exitFailure)
|
| 8 | 9 | |
| 9 | 10 | lintRules :: Rules ()
|
| ... | ... | @@ -16,6 +16,7 @@ import Settings.Builders.Common |
| 16 | 16 | import qualified Data.Set as Set
|
| 17 | 17 | import Flavour
|
| 18 | 18 | import qualified Context.Type as C
|
| 19 | +import System.Directory (findExecutable)
|
|
| 19 | 20 | import Settings.Program
|
| 20 | 21 | import qualified Context.Type
|
| 21 | 22 |