leksah-server-0.12.1.2: Metadata collection for leksah

Safe Haskell | None

IDE.Utils.FileUtils

Description

Synopsis

- allModules :: FilePath -> IO [ModuleName]
- allHiFiles :: FilePath -> IO [FilePath]
- allHaskellSourceFiles :: FilePath -> IO [FilePath]
- isEmptyDirectory :: FilePath -> IO Bool
- cabalFileName :: FilePath -> IO (Maybe FilePath)
- allCabalFiles :: FilePath -> IO [FilePath]
- getConfigFilePathForLoad :: String -> Maybe FilePath -> FilePath -> IO FilePath
- hasSavedConfigFile :: String -> IO Bool
- getConfigDir :: IO FilePath
- getConfigFilePathForSave :: String -> IO FilePath
- getCollectorPath :: MonadIO m => m FilePath
- getSysLibDir :: IO FilePath
- moduleNameFromFilePath :: FilePath -> IO (Maybe String)
- moduleNameFromFilePath' :: FilePath -> String -> IO (Maybe String)
- findKnownPackages :: FilePath -> IO (Set String)
- isSubPath :: FilePath -> FilePath -> Bool
- findSourceFile :: [FilePath] -> [String] -> ModuleName -> IO (Maybe FilePath)
- findSourceFile' :: [FilePath] -> String -> IO (Maybe FilePath)
- haskellSrcExts :: [String]
- getCabalUserPackageDir :: IO (Maybe FilePath)
- autoExtractCabalTarFiles :: FilePath -> IO ()
- autoExtractTarFiles :: FilePath -> IO ()
- getInstalledPackageIds :: IO [PackageIdentifier]
- figureOutGhcOpts :: IO [String]
- figureOutHaddockOpts :: IO [String]
- allFilesWithExtensions :: [String] -> Bool -> [FilePath] -> FilePath -> IO [FilePath]
- myCanonicalizePath :: String -> IO String

# Documentation

allModules :: FilePath -> IO [ModuleName]Source

allHiFiles :: FilePath -> IO [FilePath]Source

allHaskellSourceFiles :: FilePath -> IO [FilePath]Source

isEmptyDirectory :: FilePath -> IO Bool Source

cabalFileName :: FilePath -> IO (Maybe FilePath)Source

allCabalFiles :: FilePath -> IO [FilePath]Source

getConfigFilePathForLoad :: String -> Maybe FilePath -> FilePath -> IO FilePath Source

hasSavedConfigFile :: String -> IO Bool Source

getConfigDir :: IO FilePath Source

The directory where config files reside

getConfigFilePathForSave :: String -> IO FilePath Source

getCollectorPath :: MonadIO m => m FilePath Source

getSysLibDir :: IO FilePath Source

moduleNameFromFilePath :: FilePath -> IO (Maybe String)Source

moduleNameFromFilePath' :: FilePath -> String -> IO (Maybe String)Source

findKnownPackages :: FilePath -> IO (Set String)Source

isSubPath :: FilePath -> FilePath -> Bool Source

Returns True if the second path is a location which starts with the first path

findSourceFile :: [FilePath] -> [String] -> ModuleName -> IO (Maybe FilePath)Source

findSourceFile' :: [FilePath] -> String -> IO (Maybe FilePath)Source

haskellSrcExts :: [String]Source

getCabalUserPackageDir :: IO (Maybe FilePath)Source

autoExtractCabalTarFiles :: FilePath -> IO ()Source

autoExtractTarFiles :: FilePath -> IO ()Source

getInstalledPackageIds :: IO [PackageIdentifier]Source

figureOutGhcOpts :: IO [String]Source

figureOutHaddockOpts :: IO [String]Source

allFilesWithExtensions :: [String] -> Bool -> [FilePath] -> FilePath -> IO [FilePath]Source

myCanonicalizePath :: String -> IO String Source

canonicalizePath without crashing