Skip to content

Commit

Permalink
Merge pull request haskell#7955 from robx/rm-deprecated
Browse files Browse the repository at this point in the history
Remove deprecated file finding functions
  • Loading branch information
mergify[bot] committed Feb 18, 2022
2 parents d720c94 + a8cccf5 commit 9a104a9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
25 changes: 0 additions & 25 deletions Cabal/src/Distribution/Simple/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ module Distribution.Simple.Utils (
-- * FilePath stuff
isAbsoluteOnAnyPlatform,
isRelativeOnAnyPlatform,

-- * Deprecated functions
findFile,
findModuleFile,
findModuleFiles,
) where

import Prelude ()
Expand Down Expand Up @@ -998,12 +993,6 @@ xargs maxSize rawSystemFun fixedArgs bigArgs =
-- Finding files


{-# DEPRECATED findFile "Use findFileEx instead. This symbol will be removed in Cabal 3.2 (est. December 2019)" #-}
findFile :: [FilePath] -- ^search locations
-> FilePath -- ^File Name
-> IO FilePath
findFile = findFileEx normal

-- | Find a file by looking in a search path. The file path must match exactly.
--
-- @since 3.4.0.0
Expand Down Expand Up @@ -1106,13 +1095,6 @@ findAllFiles :: (a -> FilePath) -> [a] -> IO [a]
findAllFiles file = filterM (doesFileExist . file)


{-# DEPRECATED findModuleFiles "Use findModuleFilesEx instead. This symbol will be removed in Cabal 3.2 (est. December 2019)" #-}
findModuleFiles :: [FilePath] -- ^ build prefix (location of objects)
-> [String] -- ^ search suffixes
-> [ModuleName] -- ^ modules
-> IO [(FilePath, FilePath)]
findModuleFiles = findModuleFilesEx normal

-- | Finds the files corresponding to a list of Haskell module names.
--
-- As 'findModuleFile' but for a list of module names.
Expand All @@ -1125,13 +1107,6 @@ findModuleFilesEx :: Verbosity
findModuleFilesEx verbosity searchPath extensions moduleNames =
traverse (findModuleFileEx verbosity searchPath extensions) moduleNames

{-# DEPRECATED findModuleFile "Use findModuleFileEx instead. This symbol will be removed in Cabal 3.2 (est. December 2019)" #-}
findModuleFile :: [FilePath] -- ^ build prefix (location of objects)
-> [String] -- ^ search suffixes
-> ModuleName -- ^ module
-> IO (FilePath, FilePath)
findModuleFile = findModuleFileEx normal

-- | Find the file corresponding to a Haskell module name.
--
-- This is similar to 'findFileWithExtension'' but specialised to a module
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions changelog.d/pr-7955
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
synopsis: Remove deprecated file finding functions
packages: Cabal
prs: #7955

0 comments on commit 9a104a9

Please sign in to comment.