<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--Rendered using the Haskell Html Library v0.2--> <HTML ><HEAD ><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" ><TITLE >Distribution.Simple.Utils</TITLE ><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css" ><SCRIPT SRC="haddock-util.js" TYPE="text/javascript" ></SCRIPT ></HEAD ><BODY ><DIV CLASS="outer" ><DIV CLASS="mini-topbar" >Distribution.Simple.Utils</DIV ><DIV CLASS="mini-synopsis" ><DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcabalVersion" TARGET="main" >cabalVersion</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcabalBootstrapping" TARGET="main" >cabalBootstrapping</A ></DIV > <H1 >logging and errors </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Adie" TARGET="main" >die</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AdieWithLocation" TARGET="main" >dieWithLocation</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Awarn" TARGET="main" >warn</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Anotice" TARGET="main" >notice</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AsetupMessage" TARGET="main" >setupMessage</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Ainfo" TARGET="main" >info</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Adebug" TARGET="main" >debug</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AchattyTry" TARGET="main" >chattyTry</A ></DIV > <H1 >running programs </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3ArawSystemExit" TARGET="main" >rawSystemExit</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3ArawSystemStdout" TARGET="main" >rawSystemStdout</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3ArawSystemStdout%27" TARGET="main" >rawSystemStdout'</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AmaybeExit" TARGET="main" >maybeExit</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Axargs" TARGET="main" >xargs</A ></DIV > <H1 >copying files </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AsmartCopySources" TARGET="main" >smartCopySources</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcreateDirectoryIfMissingVerbose" TARGET="main" >createDirectoryIfMissingVerbose</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcopyFileVerbose" TARGET="main" >copyFileVerbose</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcopyDirectoryRecursiveVerbose" TARGET="main" >copyDirectoryRecursiveVerbose</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcopyFiles" TARGET="main" >copyFiles</A ></DIV > <H1 >file names </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AcurrentDir" TARGET="main" >currentDir</A ></DIV > <H1 >finding files </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfindFile" TARGET="main" >findFile</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfindFileWithExtension" TARGET="main" >findFileWithExtension</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfindFileWithExtension%27" TARGET="main" >findFileWithExtension'</A ></DIV > <H1 >simple file globbing </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AmatchFileGlob" TARGET="main" >matchFileGlob</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AmatchDirFileGlob" TARGET="main" >matchDirFileGlob</A ></DIV > <H1 >temp files and dirs </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwithTempFile" TARGET="main" >withTempFile</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwithTempDirectory" TARGET="main" >withTempDirectory</A ></DIV > <H1 >.cabal and .buildinfo files </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AdefaultPackageDesc" TARGET="main" >defaultPackageDesc</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfindPackageDesc" TARGET="main" >findPackageDesc</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AdefaultHookedPackageDesc" TARGET="main" >defaultHookedPackageDesc</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfindHookedPackageDesc" TARGET="main" >findHookedPackageDesc</A ></DIV > <H1 >reading and writing files safely </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwithFileContents" TARGET="main" >withFileContents</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwriteFileAtomic" TARGET="main" >writeFileAtomic</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3ArewriteFile" TARGET="main" >rewriteFile</A ></DIV > <H1 >Unicode </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AfromUTF8" TARGET="main" >fromUTF8</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AtoUTF8" TARGET="main" >toUTF8</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AreadUTF8File" TARGET="main" >readUTF8File</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwithUTF8FileContents" TARGET="main" >withUTF8FileContents</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwriteUTF8File" TARGET="main" >writeUTF8File</A ></DIV > <H1 >generic utils </H1 > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Aequating" TARGET="main" >equating</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Acomparing" TARGET="main" >comparing</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AisInfixOf" TARGET="main" >isInfixOf</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Aintercalate" TARGET="main" >intercalate</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3Alowercase" TARGET="main" >lowercase</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwrapText" TARGET="main" >wrapText</A ></DIV > <DIV CLASS="decl" ><A HREF="Distribution-Simple-Utils.html#v%3AwrapLine" TARGET="main" >wrapLine</A ></DIV ></DIV ></DIV ></BODY ></HTML >