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.
FilePathHomeDir :: FilePathRootcabal-install Distribution.Client.Glob No documentation available.
FilePathRelative :: FilePathRootcabal-install Distribution.Client.Glob No documentation available.
-
cabal-install Distribution.Client.Glob No documentation available.
FilePathRoot :: FilePath -> FilePathRootcabal-install Distribution.Client.Glob e.g. "/", "c:" or result of takeDrive
FilePathHomeDir :: FilePathRootcabal-install Distribution.Client.RebuildMonad No documentation available.
FilePathRelative :: FilePathRootcabal-install Distribution.Client.RebuildMonad No documentation available.
-
cabal-install Distribution.Client.RebuildMonad No documentation available.
FilePathRoot :: FilePath -> FilePathRootcabal-install Distribution.Client.RebuildMonad e.g. "/", "c:" or result of takeDrive
fromFilePath :: FilePath -> IO ByteStringbytestring Data.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 FilePathbytestring Data.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.