Distribution.Simple.Utils

cabalVersion

# logging and errors

die

dieWithLocation

topHandler

topHandlerWith

warn

notice

setupMessage

info

debug

debugNoWrap

chattyTry

# running programs

rawSystemExit

rawSystemExitCode

rawSystemExitWithEnv

rawSystemStdout

rawSystemStdInOut

rawSystemIOWithEnv

maybeExit

xargs

findProgramLocation

findProgramVersion

# copying files

smartCopySources

createDirectoryIfMissingVerbose

copyFileVerbose

copyDirectoryRecursiveVerbose

copyFiles

copyFileTo

# installing files

installOrdinaryFile

installExecutableFile

installMaybeExecutableFile

installOrdinaryFiles

installExecutableFiles

installMaybeExecutableFiles

installDirectoryContents

# File permissions

setFileOrdinary

setFileExecutable

# file names

currentDir

# finding files

findFile

findFirstFile

findFileWithExtension

findFileWithExtension'

findModuleFile

findModuleFiles

getDirectoryContentsRecursive

# environment variables

isInSearchPath

# simple file globbing

matchFileGlob

matchDirFileGlob

parseFileGlob

data FileGlob

# modification time

moreRecentFile

# temp files and dirs

data TempFileOptions

defaultTempFileOptions

withTempFile

withTempFileEx

withTempDirectory

withTempDirectoryEx

# .cabal and .buildinfo files

defaultPackageDesc

findPackageDesc

defaultHookedPackageDesc

findHookedPackageDesc

# reading and writing files safely

withFileContents

writeFileAtomic

rewriteFile

# Unicode

fromUTF8

toUTF8

readUTF8File

withUTF8FileContents

writeUTF8File

normaliseLineEndings

# generic utils

equating

comparing

isInfixOf

intercalate

lowercase

wrapText

wrapLine