Distribution.Simple.Utils

cabalVersion

# logging and errors

die

dieWithLocation

topHandler

warn

notice

setupMessage

info

debug

chattyTry

# running programs

rawSystemExit

rawSystemExitCode

rawSystemExitWithEnv

rawSystemStdout

rawSystemStdInOut

maybeExit

xargs

findProgramLocation

findProgramVersion

# copying files

smartCopySources

createDirectoryIfMissingVerbose

copyFileVerbose

copyDirectoryRecursiveVerbose

copyFiles

# installing files

installOrdinaryFile

installExecutableFile

installOrdinaryFiles

installDirectoryContents

# File permissions

setFileOrdinary

setFileExecutable

# file names

currentDir

# finding files

findFile

findFirstFile

findFileWithExtension

findFileWithExtension'

findModuleFile

findModuleFiles

getDirectoryContentsRecursive

# simple file globbing

matchFileGlob

matchDirFileGlob

parseFileGlob

data FileGlob

# temp files and dirs

withTempFile

withTempDirectory

# .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