Package1.5.5.0System
filepath
Library for manipulating FilePaths in a cross platform way.
- Version1.5.5.0
- CategorySystem
- LicenceBSD-3-Clause
- AuthorNeil Mitchell <ndmitchell@gmail.com>
- MaintainerJulian Ospald <hasufell@posteo.de>
- Homepagegithub.com/haskell/filepath/blob/master/README.md
- Pinned bywith GHC
- Sourcehackage.haskell.org/package/filepath-1.5.5.0
Modules
11 modules- System.FilePath53A library for FilePath manipulations, using Posix or Windows filepaths
- System.FilePath.Posix53A library for FilePath manipulations, using Posix style paths on
- System.FilePath.Windows53A library for FilePath manipulations, using Windows style paths on
- System.OsPath66An implementation of the Abstract FilePath Proposal,
- System.OsPath.Encoding18
- System.OsPath.Posix66
- System.OsPath.Types10
- System.OsPath.Windows66
Internal modules · 3
- System.OsPath.Internal11
- System.OsPath.Posix.Internal51A library for FilePath manipulations, using Posix style paths on
- System.OsPath.Windows.Internal51A library for FilePath manipulations, using Windows style paths on
Description
This package provides functionality for manipulating FilePath values, and is shipped with GHC. It provides two variants for filepaths:
legacy filepaths: type FilePath = String 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:
System.FilePath.Posix / System.OsPath.Posix manipulates POSIX/Linux style FilePath values (with / as the path separator). System.FilePath.Windows / System.OsPath.Windows manipulates Windows style FilePath values (with either \ or / as the path separator, and deals with drives). System.FilePath / System.OsPath for dealing with current platform-specific filepaths
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.
Depends on
7 packages- base-4.23.0.0with GHC
- bytestring-0.12.2.0with GHC
- deepseq-1.5.2.0with GHC
- exceptions-0.10.12with GHC
- os-string-2.0.11with GHC
- template-haskell-lift-0.1.0.0with GHC
- template-haskell-quasiquoter-0.1.0.0with GHC