Distribution.Simple.Utils

cabalVersion

logging and errors

die

dieWithLocation

topHandler

topHandlerWith

warn

notice

setupMessage

info

debug

debugNoWrap

chattyTry

printRawCommandAndArgs

printRawCommandAndArgsAndEnv

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

copyDirectoryRecursive

File permissions

doesExecutableExist

setFileOrdinary

setFileExecutable

file names

currentDir

shortRelativePath

finding files

findFile

findFirstFile

findFileWithExtension

findFileWithExtension'

findModuleFile

findModuleFiles

getDirectoryContentsRecursive

environment variables

isInSearchPath

addLibraryPath

simple file globbing

matchFileGlob

matchDirFileGlob

parseFileGlob

data FileGlob

modification time

moreRecentFile

existsAndIsMoreRecentThan

temp files and dirs

data TempFileOptions

defaultTempFileOptions

withTempFile

withTempFileEx

withTempDirectory

withTempDirectoryEx

.cabal and .buildinfo files

defaultPackageDesc

findPackageDesc

tryFindPackageDesc

defaultHookedPackageDesc

findHookedPackageDesc

reading and writing files safely

withFileContents

writeFileAtomic

rewriteFile

Unicode

fromUTF8

toUTF8

readUTF8File

withUTF8FileContents

writeUTF8File

normaliseLineEndings

generic utils

dropWhileEndLE

takeWhileEndLE

equating

comparing

isInfixOf

intercalate

lowercase

listUnion

listUnionRight

ordNub

ordNubRight

wrapText

wrapLine