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 · 49
- Cabal-3.18.1.0
- Cabal-syntax-3.18.1.0
- Glob-0.10.2
- cabal-doctest-1.0.13
- cabal-install-3.18.1.0
- cabal-install-solver-3.18.1.0
- cabal2nix-2.21.3
- cmdargs-0.10.22
- conduit-1.3.6.1
- conduit-extra-1.3.8
- crypton-x509-store-1.9.0
- crypton-x509-system-1.9.0
- directory-1.3.11.0
- directory-ospath-streaming-0.3
- easy-file-0.2.5
- ech-config-0.0.1
- extra-1.8.1
- fast-logger-3.2.7
- file-io-0.2.0
- ghc-10.0.0.20260917
- ghc-boot-10.0.0.20260917
- ghc-lib-parser-9.14.1.20251220
- ghc-toolchain-0.1.0.0
- ghci-10.0.0.20260917
- hackage-db-2.1.3
- hackage-revdeps-0.4.1
- hackage-security-0.6.4.0
- haddock-api-2.34.0
- hashable-1.5.1.0
- haskeline-0.8.5.0
- hint-0.9.0.9
- hoogle-5.0.19.0
- hooks-exe-3.18
- horizon-config-shell-0.12.0
- hpack-0.39.6
- hpc-0.7.0.2
- http-client-0.7.19
- infer-license-0.2.0
- lens-5.3.6
- path-0.9.6
- path-io-1.8.2
- pretty-show-1.10
- process-1.6.30.0
- rio-0.1.25.0
- semaphore-compat-2.0.1
- temporary-1.3
- unix-2.8.8.0
- unliftio-0.2.25.1
- yaml-0.11.11.2