Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
toFilePath :: Path b t -> FilePathpath Path.Internal.Posix Convert to a FilePath type. All directories have a trailing slash, so if you want no trailing slash, you can use dropTrailingPathSeparator from the filepath package.
toFilePath :: Path b t -> FilePathpath Path.Internal.Windows Convert to a FilePath type. All directories have a trailing slash, so if you want no trailing slash, you can use dropTrailingPathSeparator from the filepath package.
toFilePath :: Path b t -> FilePathpath Path.Posix Convert to a FilePath type. All directories have a trailing slash, so if you want no trailing slash, you can use dropTrailingPathSeparator from the filepath package.
toFilePath :: Path b t -> FilePathpath Path.Windows Convert to a FilePath type. All directories have a trailing slash, so if you want no trailing slash, you can use dropTrailingPathSeparator from the filepath package.
fromFilePath :: FilePath -> IO ByteStringrio RIO.ByteString Convert a FilePath to a ByteString. The FilePath type is expected to use the file system encoding as reported by getFileSystemEncoding. This encoding allows for round-tripping of arbitrary data on platforms that allow arbitrary bytes in their paths. This conversion function does the same thing that openFile would do when decoding the FilePath. This function is in IO because the file system encoding can be changed. If the encoding can be assumed to be constant in your use case, you may invoke this function via unsafePerformIO.
toFilePath :: ByteString -> IO FilePathrio RIO.ByteString Convert a ByteString to a FilePath. This function uses the file system encoding, and resulting FilePaths can be safely used with standard IO functions and will reference the correct path in the presence of arbitrary non-UTF-8 encoded paths. This function is in IO because the file system encoding can be changed. If the encoding can be assumed to be constant in your use case, you may invoke this function via unsafePerformIO.
equalFilePath :: FilePath -> FilePath -> Boolrio RIO.FilePath Equality of two FILEPATHs. If you call System.Directory.canonicalizePath first this has a much better chance of working. Note that this doesn't follow symlinks or DOSNAM~1s. Similar to normalise, this does not expand "..", because of symlinks.
x == y ==> equalFilePath x y normalise x == normalise y ==> equalFilePath x y equalFilePath "foo" "foo/" not (equalFilePath "/a/../c" "/c") not (equalFilePath "foo" "/foo") Posix: not (equalFilePath "foo" "FOO") Windows: equalFilePath "foo" "FOO" Windows: not (equalFilePath "C:" "C:/")
getFilePathNT :: FilePathNT -> StringCabal-syntax Distribution.FieldGrammar.Newtypes No documentation available.
-
Cabal-syntax Distribution.Fields Empty filepath, i.e. literally ""
toFilePath :: ModuleName -> FilePathCabal-syntax Distribution.ModuleName Convert a module name to a file path, but without any file extension. For example:
toFilePath (fromString "A.B.C") = "A/B/C"