The Haskell CabalSource codeContentsIndex
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
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 -> FilePath -> [String] -> [String] -> IO ()
moduleToFilePath :: FilePath -> String -> [String] -> IO (Maybe FilePath)
createIfNotExists :: Bool -> FilePath -> IO ()
mkLibName :: FilePath -> String -> String
copyFile :: FilePath -> FilePath -> IO ()
pathJoin :: [String] -> FilePath
removeFileRecursive :: FilePath -> IO ()
splitExt :: FilePath -> (String, String)
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
:: FilePathbuild prefix (location of objects)
-> FilePathTarget directory
-> [String]Modules
-> [String]search suffixes
-> IO ()
Put the source files into the right directory in preperation for something like sdist or installHugs.
moduleToFilePath
:: FilePathsearch location
-> StringModule 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
:: BoolCreate its parents too?
-> FilePathThe path to the directory you want to make
-> IO ()
mkLibName
:: FilePathfile Prefix
-> Stringlibrary 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