NŔJ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHISafeSafeJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~SafeSafeOFilename extension for executable files (including the dot if any) (usually "" on POSIX systems and ".exe" on Windows or OS/2).SafeSafe "(c) The University of Glasgow 2001/BSD-style (see the file libraries/base/LICENSE)libraries@haskell.orgstableportableSafe@zSpecial directories for storing user-specific application data, configuration, and cache files, as specified by the  Fhttp://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification.Note: On Windows,  and  map to the same directory.-For data files (e.g. images). Defaults to ~/.local/share! and can be overridden by the  XDG_DATA_HOME, environment variable. On Windows, it is  %APPDATA% (e.g.  C:/Users/<user>/AppData/Roaming;). Can be considered as the user-specific equivalent of  /usr/share.(For configuration files. Defaults to  ~/.config! and can be overridden by the XDG_CONFIG_HOME, environment variable. On Windows, it is  %APPDATA% (e.g.  C:/Users/<user>/AppData/Roaming;). Can be considered as the user-specific equivalent of /etc.5For non-essential files (e.g. cache). Defaults to ~/.cache! and can be overridden by the XDG_CACHE_HOME, environment variable. On Windows, it is %LOCALAPPDATA% (e.g.  C:/Users/<user>/AppData/Local;). Can be considered as the user-specific equivalent of  /var/cache.: not a directory..: a true directory (not a symbolic link).6: a directory symbolic link (only exists on Windows).The = operation returns the permissions for the file or directory.The operation may fail with:= if the user is not permitted to access the permissions; or) if the file or directory does not exist.The : operation sets the permissions for the file or directory.The operation may fail with:: if the user is not permitted to set the permissions; or) if the file or directory does not exist. dir creates a new directory dirN which is initially empty, or as near to empty as the operating system allows.The operation may fail with: / PermissionDeniedC The process has insufficient privileges to perform the operation. [EROFS, EACCES] /  AlreadyExists8 The operand refers to a directory that already exists.  [EEXIST] HardwareFault$ A physical I/O error has occurred. [EIO]InvalidArgument, The operand is not a valid directory name. [ENAMETOOLONG, ELOOP] NoSuchThing$ There is no path to the directory. [ENOENT, ENOTDIR]ResourceExhausted Insufficient resources (virtual memory, process file descriptors, physical disk space, etc.) are available to perform the operation.  [EDQUOT, ENOSPC, ENOMEM, EMLINK]D6 The path refers to an existing non-directory object. [EEXIST] parents dir creates a new directory dir/ if it doesn't exist. If the first argument is K the function will also create all parent directories if they are missing.Obtain the type of a directory. dir removes an existing directory dir. The implementation may specify additional constraints which must be satisfied before a directory can be removed (e.g. the directory has to be empty, or may not be in use by other processes). It is not legal for an implementation to partially remove a directory unless the entire directory is removed. A conformant implementation need not support directory removal in all situations (e.g. removal of the root directory).The operation may fail with: HardwareFault$ A physical I/O error has occurred. [EIO]InvalidArgument, The operand is not a valid directory name. [ENAMETOOLONG, ELOOP] /  NoSuchThing The directory does not exist. [ENOENT, ENOTDIR] / PermissionDeniedC The process has insufficient privileges to perform the operation. [EROFS, EACCES, EPERM]UnsatisfiedConstraints9 Implementation-dependent constraints are not satisfied. [EBUSY, ENOTEMPTY, EEXIST]E@ The implementation does not support removal in this situation. [EINVAL]D9 The operand refers to an existing non-directory object.  [ENOTDIR] dir removes an existing directory dir together with its contents and subdirectories. Within this directory, symbolic links are removed without affecting their targets.#On Windows, the operation fails if dir is a directory symbolic link. path+ removes an existing file or directory at pathp together with its contents and subdirectories. Symbolic links are removed without affecting their the targets. dir( removes the contents of the directory dirN recursively. Symbolic links are removed without affecting their the targets.Removes a file or directory at path together with its contents and subdirectories. Symbolic links are removed without affecting their targets. If the path does not exist, nothing happens.Unlike other removal functions, this function will also attempt to delete files marked as read-only or otherwise made unremovable due to permissions. As a result, if the removal is incomplete, the permissions or attributes on the remaining files may be altered.0If an entry within the directory vanishes while removePathForcibly% is running, it is silently ignored.0If an exception occurs while removing an entry, removePathForcibly will still try to remove as many entries as it can before failing with an exception. The first exception that it encountered is re-thrown. file2 removes the directory entry for an existing file file, where file is not itself a directory. The implementation may specify additional constraints which must be satisfied before a file can be removed (e.g. the file may not be in use by other processes).The operation may fail with: HardwareFault$ A physical I/O error has occurred. [EIO]InvalidArgument' The operand is not a valid file name. [ENAMETOOLONG, ELOOP] /  NoSuchThing The file does not exist. [ENOENT, ENOTDIR] / PermissionDeniedC The process has insufficient privileges to perform the operation. [EROFS, EACCES, EPERM]UnsatisfiedConstraints9 Implementation-dependent constraints are not satisfied. [EBUSY]D. The operand refers to an existing directory. [EPERM, EINVAL] old new0 changes the name of an existing directory from old to new . If the new< directory already exists, it is atomically replaced by the old directory. If the new directory is neither the old directory nor an alias of the old# directory, it is removed as if by . A conformant implementation need not support renaming directories in all situations (e.g. renaming to an existing directory, or across different physical devices), but the constraints must be documented.On Win32 platforms, renameDirectory fails if the new directory already exists.The operation may fail with: HardwareFault$ A physical I/O error has occurred. [EIO]InvalidArgument/ Either operand is not a valid directory name. [ENAMETOOLONG, ELOOP] /  NoSuchThingK The original directory does not exist, or there is no path to the target. [ENOENT, ENOTDIR] / PermissionDeniedC The process has insufficient privileges to perform the operation. [EROFS, EACCES, EPERM]ResourceExhausted@ Insufficient resources are available to perform the operation.  [EDQUOT, ENOSPC, ENOMEM, EMLINK]UnsatisfiedConstraints9 Implementation-dependent constraints are not satisfied. [EBUSY, ENOTEMPTY, EEXIST]EA The implementation does not support renaming in this situation. [EINVAL, EXDEV]D9 Either path refers to an existing non-directory object. [ENOTDIR, EISDIR] old new9 changes the name of an existing file system object from old to new . If the new9 object already exists, it is atomically replaced by the old object. Neither path may refer to an existing directory. A conformant implementation need not support renaming files in all situations (e.g. renaming across different physical devices), but the constraints must be documented.The operation may fail with: HardwareFault$ A physical I/O error has occurred. [EIO]InvalidArgument* Either operand is not a valid file name. [ENAMETOOLONG, ELOOP] /  NoSuchThingF The original file does not exist, or there is no path to the target. [ENOENT, ENOTDIR] / PermissionDeniedC The process has insufficient privileges to perform the operation. [EROFS, EACCES, EPERM]ResourceExhausted@ Insufficient resources are available to perform the operation.  [EDQUOT, ENOSPC, ENOMEM, EMLINK]UnsatisfiedConstraints9 Implementation-dependent constraints are not satisfied. [EBUSY]EA The implementation does not support renaming in this situation. [EXDEV]D. Either path refers to an existing directory. ,[ENOTDIR, EISDIR, EINVAL, EEXIST, ENOTEMPTY]LRename a file or directory. If the destination path already exists, it is replaced atomically. The destination path must not point to an existing directory. A conformant implementation need not support renaming files in all situations (e.g. renaming across different physical devices), but the constraints must be documented.The operation may fail with: HardwareFault& A physical I/O error has occurred. [EIO]InvalidArgument, Either operand is not a valid file name. [ENAMETOOLONG, ELOOP] /  NoSuchThingH The original file does not exist, or there is no path to the target. [ENOENT, ENOTDIR] / PermissionDeniedE The process has insufficient privileges to perform the operation. [EROFS, EACCES, EPERM]ResourceExhaustedB Insufficient resources are available to perform the operation.  [EDQUOT, ENOSPC, ENOMEM, EMLINK]UnsatisfiedConstraints; Implementation-dependent constraints are not satisfied. [EBUSY]EC The implementation does not support renaming in this situation. [EXDEV]D Either the destination path refers to an existing directory, or one of the parent segments in the destination path is not a directory. ,[ENOTDIR, EISDIR, EINVAL, EEXIST, ENOTEMPTY]Copy a file with its permissions. If the destination file already exists, it is replaced atomically. Neither path may refer to an existing directory. No exceptions are thrown if the permissions could not be copied.Truncate the destination file and then copy the contents of the source file to the destination file. If the destination file already exists, its attributes shall remain unchanged. Otherwise, its attributes are reset to the defaults.iCopy the contents of a source file to a destination file, replacing the destination file atomically via D, resetting the attributes of the destination file to the defaults.A helper function useful for replacing files in an atomic manner. The function creates a temporary file in the directory of the destination file, opens it, performs the main action with its handle, closes it, performs the post-action with its path, and finally replaces the destination file with the temporary file. If an error occurs during any step of this process, the temporary file is removed and the destination file remains untouched.NAttempt to perform the given action, silencing any IO exception thrown by it.&Copy all data from a file to a handle.7Copy data from one handle to another until end of file.TCopy a file with its associated metadata. If the destination file already exists, it is overwritten. There is no guarantee of atomicity in the replacement of the destination file. Neither path may refer to an existing directory. If the source and/or destination are symbolic links, the copy is performed on the targets of the links.0On Windows, it behaves like the Win32 function  Fhttps://msdn.microsoft.com/en-us/library/windows/desktop/aa363851.aspxCopyFilef, which copies various kinds of metadata including file attributes and security resource properties.2On Unix-like systems, permissions, access time, and modification time are preserved. If possible, the owner and group are also preserved. Note that the very act of copying can change the access time of the source file, hence the access times of the two files may differ after the operation completes.Make a path absolute, r the path, and remove as many indirections from it as possible. Any trailing path separators are discarded via J. Additionally, on Windows the letter case of the path is canonicalized.NoteK: This function is a very big hammer. If you only need an absolute path, I is sufficient for removing dependence on the current working directory.1Indirections include the two special directories . and ..A, as well as any symbolic links. The input path need not point to an existing file or directory. Canonicalization is performed on the longest prefix of the path that points to an existing file or directory. The remaining portion of the path that does not point to an existing file or directory will still undergo t, but case canonicalization and indirection removal are skipped as they are impossible to do on a nonexistent path.Most programs should not worry about the canonicity of a path. In particular, despite the name, the function does not truly guarantee canonicity of the returned path due to the presence of hard links, mount points, etc.If the path points to an existing file or directory, then the output path shall also point to the same file or directory, subject to the condition that the relevant parts of the file system do not change while the function is still running. In other words, the function is definitively not atomic. The results can be utterly wrong if the portions of the path change while this function is running.FSince symbolic links (and, on non-Windows systems, parent directories ..) are dependent on the state of the existing filesystem, the function can only make a conservative attempt by removing such indirections from the longest prefix of the path that still points to an existing file or directory.(Note that on Windows parent directories ..p are always fully expanded before the symbolic links, as consistent with the rest of the Windows API (such as GetFullPathName6). In contrast, on POSIX systems parent directories ..\ are expanded alongside symbolic links from left to right. To put this more concretely: if L is a symbolic link for R/P, then on Windows L\.. refers to .%, whereas on other operating systems L/.. refers to R. Similar to H, passing an empty path is equivalent to passing the current directory. Known bugs: When the path contains an existing symbolic link, but the target of the link does not exist, then the path is not dereferenced (bug #64). Symbolic link expansion is not performed on Windows XP or earlier due to the absence of GetFinalPathNameByHandle.Changes since 1.2.3.0:Y The function has been altered to be more robust and has the same exception behavior as .Changes since 1.3.0.0: The function no longer preserves the trailing path separator. File symbolic links that appear in the middle of a path are properly dereferenced. Case canonicalization and symbolic link expansion are now performed on Windows.Convert a path into an absolute path. If the given path is relative, the current directory is prepended and then the combined result is 9d. If the path is already absolute, the path is simply d. The function preserves the presence or absence of the trailing path separator unless the path refers to the root directory /.|If the path is already absolute, the operation never fails. Otherwise, the operation may fail with the same exceptions as ).Convert a path into an absolute path. If the given path is relative, the current directory is prepended. If the path is already absolute, the path is returned unchanged. The function preserves the presence or absence of the trailing path separator.|If the path is already absolute, the operation never fails. Otherwise, the operation may fail with the same exceptions as ).(internal API)lAdd or remove the trailing path separator in the second path so as to match its presence in the first path.(internal API)@Construct a path relative to the current directory, similar to .3The operation may fail with the same exceptions as ). Given an executable file name, searches for such file in the directories listed in system PATH. The returned value is the path to the found executable or Nothing if an executable with the given name was not found. For example (findExecutable "ghc") gives you the path to GHC.The path returned by  7 corresponds to the program that would be executed by  D when passed the same string (as a RawCommand, not a ShellCommand). On Windows,   calls the Win32 function  SearchPathE, which may search other places before checking the directories in PATH. Where it actually searches depends on registry settings, but notably includes the directory containing the current executable. See  5http://msdn.microsoft.com/en-us/library/aa365527.aspx for more details.!cGiven a file name, searches for the file and returns a list of all occurences that are executable.IOn Windows, this only returns the first ocurrence, if any. It uses the  SearchPath- from the Win32 API, so the caveats noted in   apply here as well.Get the contents of the PATH environment variable."vGiven a file name, searches for the file on the given paths and returns a list of all occurences that are executable."Test whether a file is executable.#?Search through the given set of directories for the given file.$xSearch through the given set of directories for the given file and returns a list of paths where the given file exists.%Search through the given set of directories for the given file and with the given property (usually permissions) and returns the file path where the given file exists and has the property.  for   , essentially.Returns the first  in the list or  if there aren't any.&Search through the given set of directories for the given file and with the given property (usually permissions) and returns a list of paths where the given file exists and has the property.Like %', but searches only a single directory.' Similar to (+, but always includes the special entries (. and ..&). (This applies to Windows as well.)3The operation may fail with the same exceptions as (.(( dir returns a list of all entries in dir without the special entries (. and ..).The operation may fail with: HardwareFault* A physical I/O error has occurred. [EIO]InvalidArgument2 The operand is not a valid directory name. [ENAMETOOLONG, ELOOP] /  NoSuchThing% The directory does not exist. [ENOENT, ENOTDIR] / PermissionDeniedI The process has insufficient privileges to perform the operation. [EACCES]ResourceExhaustedF Insufficient resources are available to perform the operation. [EMFILE, ENFILE]D< The path refers to an existing non-directory object.  [ENOTDIR])9Obtain the current working directory as an absolute path. In a multithreaded program, the current working directory is a global state shared among all threads of the process. Therefore, when performing filesystem operations from multiple threads, it is highly recommended to use absolute rather than relative paths (see: ).The operation may fail with: HardwareFault& A physical I/O error has occurred. [EIO] or  NoSuchThing8 There is no path referring to the working directory. [EPERM, ENOENT, ESTALE...] or PermissionDeniedE The process has insufficient privileges to perform the operation. [EACCES]ResourceExhausted@ Insufficient resources are available to perform the operation.EB The operating system has no notion of current working directory.*/Change the working directory to the given path. In a multithreaded program, the current working directory is a global state shared among all threads of the process. Therefore, when performing filesystem operations from multiple threads, it is highly recommended to use absolute rather than relative paths (see: ).The operation may fail with: HardwareFault& A physical I/O error has occurred. [EIO]InvalidArgument. The operand is not a valid directory name. [ENAMETOOLONG, ELOOP] or  NoSuchThing! The directory does not exist. [ENOENT, ENOTDIR] or PermissionDeniedE The process has insufficient privileges to perform the operation. [EACCES]E{ The operating system has no notion of current working directory, or the working directory cannot be dynamically changed.D8 The path refers to an existing non-directory object.  [ENOTDIR]+Run an  action with the given working directory and restore the original working directory afterwards, even if the given action fails due to an exception.3The operation may fail with the same exceptions as ) and *.,#Obtain the size of a file in bytes.-Test whether the given path points to an existing filesystem object. If the user lacks necessary permissions to search the parent directories, this function may return false even if the file does actually exist..The operation . returns ^ if the argument file exists and is either a directory or a symbolic link to a directory, and  otherwise./The operation / returns 9 if the argument file exists and is not a directory, and  otherwise.0OCheck whether the path refers to a symbolic link. On Windows, this tests for FILE_ATTRIBUTE_REPARSE_POINT.2AObtain the time at which the file or directory was last accessed.The operation may fail with:< if the user is not permitted to read the access time; or) if the file or directory does not exist.Caveat for POSIX systems: This function returns a timestamp with sub-second resolution only if this package is compiled against  unix-2.6.0.07 or later and the underlying filesystem supports them.3AObtain the time at which the file or directory was last modified.The operation may fail with:B if the user is not permitted to read the modification time; or) if the file or directory does not exist.Caveat for POSIX systems: This function returns a timestamp with sub-second resolution only if this package is compiled against  unix-2.6.0.07 or later and the underlying filesystem supports them.4AChange the time at which the file or directory was last accessed.The operation may fail with:= if the user is not permitted to alter the access time; or) if the file or directory does not exist.Some caveats for POSIX systems:Not all systems support  utimensat, in which case the function can only emulate the behavior by reading the modification time and then setting both the access and modification times together. On systems where  utimensatN is supported, the access time is set atomically with nanosecond precision.!If compiled against a version of unix prior to 2.7.0.0, the function would not be able to set timestamps with sub-second resolution. In this case, there would also be loss of precision in the modification time.5AChange the time at which the file or directory was last modified.The operation may fail with:C if the user is not permitted to alter the modification time; or) if the file or directory does not exist.Some caveats for POSIX systems:Not all systems support  utimensat, in which case the function can only emulate the behavior by reading the access time and then setting both the access and modification times together. On systems where  utimensatW is supported, the modification time is set atomically with nanosecond precision.!If compiled against a version of unix prior to 2.7.0.0, the function would not be able to set timestamps with sub-second resolution. In this case, there would also be loss of precision in the access time.6*Returns the current user's home directory.The directory returned is expected to be writable by the current user, but note that it isn't generally considered good practice to store application-specific data here; use 7 or 8 instead. On Unix, 6 returns the value of the HOMEg environment variable. On Windows, the system is queried for a suitable path; a typical path might be  C:/Users/<user>.The operation may fail with:E6 The operating system has no notion of home directory.L The home directory for the current user does not exist, or cannot be found.7Obtain the paths to special directories for storing user-specific application data, configuration, and cache files, conforming to the  Fhttp://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification. Compared with 8f, this function provides a more fine-grained hierarchy as well as greater flexibility for the user.0It also works on Windows, although in that case  and # will map to the same directory.The second argument is usually the name of the application. Since it will be integrated into the path, it must consist of valid path characters.hNote: The directory may not actually exist, in which case you would need to create it with file mode 700% (i.e. only accessible by the owner).0Return the value of an environment variable, or J if there is no such value. (Equivalent to "lookupEnv" from base-4.6.) Similar to $$ but only catches a specify kind of t" as specified by the predicate.8Obtain the path to a special directory for storing user-specific application data (traditional Unix location). Newer applications may prefer the the XDG-conformant location provided by 7 ( Chttps://github.com/haskell/directory/issues/6#issuecomment-96521020migration guide).The argument is usually the name of the application. Since it will be integrated into the path, it must consist of valid path characters."On Unix-like systems, the path is ~/.<app>.On Windows, the path is  %APPDATA%/<app> (e.g.  C:/Users/<user>/AppData/Roaming/<app>)Note: the directory may not actually exist, in which case you would need to create it. It is expected that the parent directory exists and is writable.The operation may fail with:EU The operating system has no notion of application-specific data directory.V The home directory for the current user does not exist, or cannot be found.9.Returns the current user's document directory.The directory returned is expected to be writable by the current user, but note that it isn't generally considered good practice to store application-specific data here; use 7 or 8 instead. On Unix, 9 returns the value of the HOMEg environment variable. On Windows, the system is queried for a suitable path; a typical path might be  C:/Users/<user> /Documents.The operation may fail with:E: The operating system has no notion of document directory.P The document directory for the current user does not exist, or cannot be found.:2Returns the current directory for temporary files. On Unix, : returns the value of the TMPDIR environment variable or "/tmp" if the variable isn't defined. On Windows, the function checks for the existence of environment variables in the following order and uses the first path found:TMP environment variable.TEMP environment variable.!USERPROFILE environment variable.The Windows directoryThe operation may fail with:E; The operating system has no notion of temporary directory.4The function doesn't verify whether the path exists.\ Create its parents too?*The path to the directory you want to makeOld pathNew pathSource filenameDestination filenameSource filenameDestination filenameSource filenameDestination filename Post-actionDestination file Post-action Main action Source fileDestination handle Source handleDestination handle Source fileDestination file !"#$%&'()*+Directory to execute inAction to be executed,-./01234567which special directoryWa relative path that is appended to the path; if empty, the base path is returned8/a relative path that is appended to the path9:;   !"#$%&'()*+,-./0123456789:?(')*+6789: !"#$%&,-/.0  23451Q  !"#$%&'()*+,-./0123456789: !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]X^_X^`XabXcdXceXYfXYgXYhXijXikXlmXlnXloXlpXlqXlrXlsXltXluXlvXlwXlx[yz[y{[y|X}~X}X}X}X}X}X}X}X}X}X}X}X}X}X}X}X}X}X}XiXiXiXiXiXiXiXiXiXiXiXiXYXYXYXYXYXYXYXYXXXXXXXX[y[y[y[y[y[y[y[yXXXXiXiX}X}X}X}X}X}X}X}X}X}X}X}X}X}X}XiXiXiXiXiXiXXXXXYXYXYXYXYX X X X X X X X X X X X X XXXXXXYXYXYXY[[[[[[[XYXYXY[[[[Xi[[XX  X  X  X XXXXXXXXXXXXX !X "X #X $X%X&'Xa(Xa)Xa*Xa+Xa,Xa-Xa.Xa/Xa0Xa1Xa2Xa3Xa4Xa5X67X89X:;X:<X:=X:>X?@X?AX?BX?CX?DX?EX?FX?GX?HX?IX?JX?KX?LX?MXNOXNPXNQXNRXNSXNTXUVXUWXXYXXYXXZXX[X\]X\^X6_X8`XabXacXadXaeXfgXfhXfiXfjXfkXflXmnXmoXpqXprXstXsuXsvXwxXwyXwzXw{Xw|X}~XXXXXXXXXXXXXXXXXXXXXXXX X X X X X X X X X X XXXXXXXXXXXwXwXXXX XXXXXXXXXXXXXXXXiXiXiXiXiXiXXXXXX^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^X^XXXXXcXcXXXXXXYXYXYXYXYXYXYXYXYXYXXXX[y[y [y     !"#$"#%&'"#()*+,-./0123456789:;'directory-1.3.0.1-6xeJJ5YUeId68aGgBA8VCSystem.Directory!System.Directory.Internal.Windows!System.Directory.Internal.PreludeSystem.Directory.Internal.Posix System.Directory.Internal.Config%System.Directory.Internal.C_utimensatSystem.Directory.InternalSystem.Process createProcess Data.FoldableasumControl.Monad.Trans.MaybeMaybeT exeExtension XdgDirectoryXdgData XdgConfigXdgCache Permissionsreadablewritable executable searchableemptyPermissionssetOwnerReadablesetOwnerWritablesetOwnerExecutablesetOwnerSearchablegetPermissionssetPermissionscopyPermissionscreateDirectorycreateDirectoryIfMissingremoveDirectoryremoveDirectoryRecursiveremovePathForcibly removeFilerenameDirectory renameFile renamePathcopyFilecopyFileWithMetadatacanonicalizePath makeAbsolutemakeRelativeToCurrentDirectoryfindExecutablefindExecutablesfindExecutablesInDirectoriesfindFile findFiles findFileWith findFilesWithgetDirectoryContents listDirectorygetCurrentDirectorysetCurrentDirectorywithCurrentDirectory getFileSize doesPathExistdoesDirectoryExist doesFileExistpathIsSymbolicLinkisSymbolicLink getAccessTimegetModificationTime setAccessTimesetModificationTimegetHomeDirectorygetXdgDirectorygetAppUserDataDirectorygetUserDocumentsDirectorygetTemporaryDirectory$fEqPermissions$fOrdPermissions$fReadPermissions$fShowPermissions$fEnumDirectoryType$fEqDirectoryType$fOrdDirectoryType$fReadDirectoryType$fShowDirectoryType$fBoundedXdgDirectory$fEnumXdgDirectory$fEqXdgDirectory$fOrdXdgDirectory$fReadXdgDirectory$fShowXdgDirectorybaseGHC.Base++ghc-primGHC.PrimseqGHC.Listfilterzip System.IOprint Data.Tuplefstsnd otherwisemap$GHC.Real fromIntegral realToFracGHC.EnumBoundedminBoundmaxBoundEnumenumFrom enumFromThenenumFromThenTo enumFromTofromEnumtoEnumsuccpred GHC.ClassesEq==/= GHC.FloatFloatingpiexplogsqrt**logBasesincostanasinacosatansinhcoshtanhasinhacoshatanh Fractional fromRational/recipIntegral toIntegerquotremdivmodquotRemdivModMonad>>=>>returnfailFunctorfmap<$GHC.NumNum*+-negate fromIntegerabssignumOrd>=minmax><<=compareGHC.ReadRead readsPrecreadListReal toRational RealFloat floatRadix floatDigits floatRange decodeFloat encodeFloatexponent significand scaleFloatisNaN isInfiniteisDenormalizedisNegativeZeroisIEEEatan2RealFracproperFractiontruncateroundceilingfloorGHC.ShowShow showsPrecshowshowList Applicativepure<*>*><*FoldablefoldrfoldMapnulllengthfoldlfoldl1sumproductfoldr1maximumminimumelemData.Traversable TraversabletraversemapM sequenceAsequenceMonoidmemptymappendmconcat GHC.TypesBoolFalseTrueCharDoubleFloatInt integer-gmpGHC.Integer.TypeIntegerMaybeNothingJustOrderingLTEQGTRationalIOWordGHC.PtrPtr Data.EitherEitherLeftRightGHC.IO.Handle.TypesHandleSystem.Posix.Internalss_isdir withFilePathc_stat sizeof_statst_sizest_modeCStat Data.VoidVoidSystem.Timeouttimeout System.Exit exitFailureSystem.EnvironmentgetEnvgetArgs Control.Monadunless replicateM_<=<>=>for Control.ArrowsecondopenBinaryTempFilewithBinaryFilereadIOreadLn appendFile writeFilereadFileinteract getContentsgetLinegetCharputStrLnputStrputCharGHC.IO.Handle.FDstderr GHC.IO.HandlehCloseGHC.IO.Handle.TexthGetBufhPutBuf hPutStrLnhPutStrSystem.IO.Error catchIOError modifyIOErrorioeSetFileNameioeSetLocationioeSetErrorStringioeGetLocationioeGetErrorStringioeGetErrorTypepermissionErrorTypeisPermissionErrorisDoesNotExistErrorisAlreadyExistsError mkIOError tryIOErrorControl.Exception.Basebracket_finallybracket onExceptiontrycatch Text.ReadreadreadsSystem.Posix.TypesCMode EpochTimeFileMode GHC.Conc.Sync killThreadforkIOstdouthFlushForeign.C.ErrorthrowErrnoPathIfMinus1_throwErrnoIfNullthrowErrnoIfMinus1Retry_throwErrnoIfMinus1_Foreign.C.String withCWStringpeekCWStringLen withCString peekCStringCStringCWStringForeign.Marshal.Array withArray allocaArrayForeign.Marshal.Utils maybeWithwithForeign.Marshal.AllocallocaBytesAligned allocaBytesallocaGHC.IO.ExceptionioError IOErrorType OtherErrorInappropriateTypeUnsupportedOperationGHC.IO.EncodinggetFileSystemEncodingForeign.C.TypesCUCharCUShortCIntCLongCULongCWcharCTimeForeign.StorableStorablesizeOf alignment peekElemOff pokeElemOff peekByteOff pokeByteOffpeekpokenotElemallanyorand concatMapconcat sequence_mapM_for_ traverse_ Data.Monoid<>plusPtrnullPtr GHC.IORef writeIORef readIORefnewIORefIORefGHC.IOmaskthrowIOFilePath userErrorIOError GHC.IO.IOModeIOModeReadMode WriteModeeither Data.OldListunwordswordsunlineslineslex readParenText.ParserCombinators.ReadPReadS Data.Bits.&..|. complement Data.Functionon Data.Functor<$> GHC.UnicodetoLowerisAlphaisAsciilcmgcd^^^oddeven showParen showStringshowCharshowsShowSunzip3unzipzipWith3zipWithzip3!!lookupreversebreakspansplitAtdroptake dropWhile takeWhilecycle replicaterepeatiteratescanr1scanrscanl1scanlinitlasttailhead Data.Maybe catMaybes maybeToList fromMaybemaybeuncurrycurrysubtractGHC.MVarputMVarreadMVartakeMVar newEmptyMVarasTypeOfuntil$!flip.constidwhen=<<StringGHC.Err undefinederrorWithoutStackTraceerror GHC.Exception SomeException&&||not c_realpathc_free c_PATH_MAX withRealpath CTimeSpec c_utimensat c_AT_FDCWD utimeOmit toCTimeSpec$fStorableCTimeSpec DirectoryType NotDirectory Directory DirectoryLinkgetDirectoryTyperemovePathRecursiveremoveContentsRecursivecopyFileContentsatomicCopyFileContentswithReplacementFileignoreIOExceptionscopyFileToHandlecopyHandleDatafilepath-1.4.1.0System.FilePath.Posix normalisedropTrailingPathSeparatorprependCurrentDirectorymatchTrailingSeparator makeRelativegetPath isExecutable asumMaybeTfindFileWithIn lookupEnvtryIOErrorTypecopyPermissionsFromStatussequenceWithIOErrors_copyMetadataFromStatustryCopyOwnerAndGroupFromStatuscopyOwnerFromStatuscopyGroupFromStatuscopyFileTimesFromStatus getFileTimesfileTimesFromStatus setFileTimesspecializeErrorStringioeAddLocation