FilePath is:package

Library for manipulating FilePaths in a cross platform way. This package provides functionality for manipulating FilePath values, and is shipped with GHC. It provides two variants for filepaths:
  1. legacy filepaths: type FilePath = String
  2. operating system abstracted filepaths (OsPath): internally unpinned ShortByteString (platform-dependent encoding)
It is recommended to use OsPath when possible, because it is more correct. For each variant there are three main modules: For more powerful string manipulation of OsPath, you can use the os-string package (OsPath is a type synonym for OsString). An introduction into the new API can be found in this blog post. Code examples for the new API can be found here.
Not on Stackage, so not searched. Functions on System.FilePath
Library for manipulating RawFilePaths in a cross platform way. This package provides functionality for manipulating RawFilePath values. It can be used as a drop in replacement for the filepath library to get the benefits of using ByteStrings. It provides three modules: All three modules provide the same API, and the same documentation (calling out differences in the different variants). This package is now deprecated, since filepath 1.4.100.0 provides an OsPath type that is based on a bytestring. See https:/hasufell.github.ioposts/2022-06-29-fixing-haskell-filepaths.html
Not on Stackage, so not searched. Reversable and secure encoding of object ids as filepaths
Not on Stackage, so not searched. IO Access for filepath
Not on Stackage, so not searched. Functions on System.FilePath
High-level, byte-based file and directory path manipulations (deprecated) High-level, byte-based file and directory path manipulations (deprecated).
Use RawFilePath instead of FilePath A fast and safe API with high-level features on RawFilePath, instead of FilePath, to avoid the encoding issues or performance penalties. Please see README.md
Not on Stackage, so not searched. ByteString based filepath manipulation
Not on Stackage, so not searched. Abstract data type for canonical file paths.
Not on Stackage, so not searched. A type safe file path data structure