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
Used by in this set · 20
- Cabal-3.18.1.0
- Cabal-syntax-3.18.1.0
- cabal-install-3.18.1.0
- cabal-install-solver-3.18.1.0
- directory-1.3.11.0
- directory-ospath-streaming-0.3
- file-io-0.2.0
- ghc-10.0.0.20260917
- ghc-boot-10.0.0.20260917
- ghc-toolchain-0.1.0.0
- ghci-10.0.0.20260917
- hackage-security-0.6.4.0
- haddock-api-2.34.0
- hashable-1.5.1.0
- haskeline-0.8.5.0
- hooks-exe-3.18
- hpc-0.7.0.2
- process-1.6.30.0
- semaphore-compat-2.0.1
- unix-2.8.8.0