|
Distribution.Simple.Utils | Portability | GHC | Stability | alpha | Maintainer | Isaac Jones <ijones@syntaxpolice.org> |
|
|
|
|
|
Description |
Explanation: Misc. Utilities, especially file-related utilities.
Stuff used by multiple modules that doesn't fit elsewhere. |
|
Synopsis |
|
|
|
Documentation |
|
splitFilenameDir :: String -> (String, String) |
|
split :: Char -> String -> [String] |
|
isPathSeparator :: Char -> Bool |
|
pathSeparatorStr :: String |
|
setupMessage :: String -> PackageDescription -> IO () |
|
die :: String -> IO a |
|
findBinary :: String -> IO (Maybe FilePath) |
|
rawSystemPath :: String -> [String] -> IO ExitCode |
|
rawSystemExit :: FilePath -> [String] -> IO () |
|
maybeExit :: IO ExitCode -> IO () |
|
rawSystemPathExit :: String -> [String] -> IO () |
|
moveSources |
:: FilePath | build prefix (location of objects) | -> FilePath | Target directory | -> [String] | Modules | -> [String] | search suffixes | -> IO () | | Put the source files into the right directory in preperation for
something like sdist or installHugs. |
|
|
moduleToFilePath |
:: FilePath | search location | -> String | Module Name | -> [String] | possible suffixes | -> IO (Maybe FilePath) | | Get the file path for this particular module. In the IO monad
because it looks for the actual file. Might eventually interface
with preprocessor libraries in order to correctly locate more
filenames.
Returns Nothing if the file doesn't exist. |
|
|
createIfNotExists |
:: Bool | Create its parents too? | -> FilePath | The path to the directory you want to make | -> IO () | |
|
|
mkLibName |
:: FilePath | file Prefix | -> String | library name. | -> String | |
|
|
copyFile :: FilePath -> FilePath -> IO () |
Preserves permissions and, if possible, atime+mtime |
|
pathJoin :: [String] -> FilePath |
Create a path from a list of path elements |
|
removeFileRecursive :: FilePath -> IO () |
Probably follows symlinks, be careful. |
|
splitExt :: FilePath -> (String, String) |
Split the path into filename and extension |
|
Produced by Haddock version 0.6 |