filepath: Library for manipulating FilePaths in a cross platform way.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
This package provides functionality for manipulating FilePath
values, and is shipped with GHC. It provides two variants for filepaths:
legacy filepaths:
type FilePath = String
abstract filepaths: internally unpinned
ShortByteString
(platform-dependent encoding)
It is recommended to use AbstractFilePath
when possible, because it is more correct.
For each variant there are three main modules:
System.FilePath.Posix / System.AbstractFilePath.Posix manipulates POSIX/Linux style
FilePath
values (with/
as the path separator).System.FilePath.Windows / System.AbstractFilePath.Windows manipulates Windows style
FilePath
values (with either\
or/
as the path separator, and deals with drives).System.FilePath / System.AbstractFilePath for dealing with current platform-specific filepath
System.OsString is like System.AbstractFilePath, but more general purpose. Refer to the documentation of those modules for more information.
[Skip to Readme]
Properties
Versions | 1.0, 1.1.0.0, 1.1.0.1, 1.1.0.2, 1.1.0.3, 1.1.0.4, 1.2.0.0, 1.2.0.1, 1.3.0.0, 1.3.0.1, 1.3.0.2, 1.4.0.0, 1.4.1.0, 1.4.1.1, 1.4.1.2, 1.4.2, 1.4.2.1, 1.4.2.2, 1.4.100.0, 1.4.100.1, 1.4.100.2, 1.4.100.3, 1.4.100.4, 1.4.101.0, 1.4.102.0, 1.4.200.0, 1.4.200.1, 1.4.300.1, 1.4.300.2, 1.4.301.0, 1.5.0.0, 1.5.2.0, 1.5.3.0, 1.5.4.0, 2.0.0.0 |
---|---|
Change log | changelog.md |
Dependencies | base (>=4.9 && <4.18), bytestring, deepseq, exceptions, template-haskell [details] |
License | BSD-3-Clause |
Copyright | Neil Mitchell 2005-2020 |
Author | Neil Mitchell <ndmitchell@gmail.com> |
Maintainer | Julian Ospald <hasufell@posteo.de> |
Category | System |
Home page | https://github.com/haskell/filepath#readme |
Bug tracker | https://github.com/haskell/filepath/issues |
Source repo | head: git clone https://github.com/haskell/filepath.git |
Uploaded | by maerwald at 2022-05-01T06:54:51Z |
Modules
[Index] [Quick Jump]
Flags
Manual Flags
Name | Description | Default |
---|---|---|
cpphs | Use cpphs (fixes haddock source links) | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- filepath-2.0.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees