System.Path.Generic

The main filepath (& dirpath) abstract type

data Path os ar fd

Type Synonyms

type AbsFile os

type RelFile os

type AbsDir os

type RelDir os

type AbsRelFile os

type AbsRelDir os

type AbsFileDir os

type RelFileDir os

type AbsRelFileDir os

type AbsPath os fd

type Abs os fd

type RelPath os fd

type Rel os fd

type FilePath os ar

type File os ar

type DirPath os ar

type Dir os ar

type AbsRelPath os fd

type AbsRel os fd

type FileDirPath os ar

type FileDir os ar

Decisions on path types

withAbsRel

withFileDir

Path to String conversion

toString

getPathString

Constants

rootDir

currentDir

emptyFile

Parsing Functions

maybePath

maybe

parsePath

parse

Checked Construction Functions

path

relFile

relDir

absFile

absDir

relPath

rel

absPath

abs

filePath

file

dirPath

dir

absRel

fileDir

idAbsRel

idAbs

idRel

idFileDir

idFile

idDir

Unchecked Construction Functions

asPath

asRelFile

asRelDir

asAbsFile

asAbsDir

asRelPath

asAbsPath

asFilePath

asDirPath

Checked Construction Functions

mkPathAbsOrRel

mkPathFileOrDir

mkAbsPath

mkAbsPathFromCwd

Basic Manipulation Functions

(</>)

(<.>)

(<++>)

addExtension

combine

dropExtension

dropExtensions

dropFileName

replaceExtension

replaceBaseName

replaceDirectory

replaceFileName

splitExtension

splitExtensions

splitFileName

splitDirName

takeBaseName

takeDirectory

takeSuperDirectory

takeExtension

takeExtensions

takeFileName

takeDirName

mapFileName

mapFileNameF

Auxillary Manipulation Functions

equalFilePath

joinPath

normalise

splitPath

makeRelative

makeRelativeMaybe

makeAbsolute

makeAbsoluteFromCwd

dynamicMakeAbsolute

dynamicMakeAbsoluteFromCwd

genericMakeAbsolute

genericMakeAbsoluteFromCwd

pathMap

dirFromFile

fileFromDir

toFileDir

fromFileDir

fileFromFileDir

dirFromFileDir

Path Predicates

isAbsolute

isRelative

isAbsoluteString

isRelativeString

hasAnExtension

hasExtension

Separators

class System os

extSeparator

searchPathSeparator

isExtSeparator

isSearchPathSeparator

Generic Manipulation Functions

genericAddExtension

genericDropExtension

genericDropExtensions

genericSplitExtension

genericSplitExtensions

genericTakeExtension

genericTakeExtensions

Tests

testAll

isValid

class System os