FilePath -package:filepath
base Prelude System.IO GHC.IO,
hedgehog Hedgehog.Internal.Prelude,
MissingH System.IO.HVFS,
base-compat Prelude.Compat,
protolude Protolude,
relude Relude.Base,
rio RIO.FilePath RIO.Prelude.Types,
base-prelude BasePrelude,
shake Development.Shake.FilePath,
turtle Turtle,
shelly Shelly Shelly.Lifted Shelly.Pipe,
classy-prelude ClassyPrelude,
numeric-prelude NumericPrelude NumericPrelude.Base,
Cabal-syntax Distribution.Compat.Prelude,
basic-prelude CorePrelude,
universum Universum.Base,
ihaskell IHaskellPrelude,
numhask NumHask.Prelude,
clash-prelude Clash.HaskellPrelude,
ghc-lib-parser GHC.Prelude.Basic,
prelude-compat Prelude2010,
ghc-internal GHC.Internal.IO GHC.Internal.System.IO,
dimensional Numeric.Units.Dimensional.Prelude,
easy-file System.EasyFile,
rebase Rebase.Prelude,
mixed-types-num Numeric.MixedTypes.PreludeHiding,
xmonad-contrib XMonad.Config.Prime,
constrained-categories Control.Category.Constrained.Prelude Control.Category.Hask,
copilot-language Copilot.Language.Prelude,
incipit-base Incipit.Base,
LambdaHack Game.LambdaHack.Core.Prelude,
cabal-install-solver Distribution.Solver.Compat.Prelude,
faktory Faktory.Prelude,
verset Verset,
yesod-paginator Yesod.Paginator.Prelude,
distribution-opensuse OpenSuse.Prelude,
hledger-web Hledger.Web.Import,
termonad Termonad.Prelude File and directory names are values of type
String, whose
precise meaning is operating system dependent. Files can be opened,
yielding a handle which can then be used to operate on the contents of
that file.
Internal stuff: support for ByteString FilePaths
Internal stuff: support for ByteString FilePaths
A module for
FilePath operations exposing
System.FilePath plus some additional operations.
Windows note: The extension methods (
<.>,
takeExtension etc) use the Posix variants since on Windows
"//*" <.> "txt" produces
"//*\\.txt"
(which is bad for
FilePattern values).
FilePath is a collection of FileName
TODO: Eq and Ord are implemented using Show This is not very efficient
and would need to be improved Also, it is possible the ordering is not
necessary what we want in this case.
A FilePath is one of the following:
- An Absolute:
- starts with one of the follwing "/"
- A relative:
- don't start with a "/"
- authorised:
- "/"
- "filepath"
- "."
- ".."
- "workhaskellhs-foundation"
- unauthorised
- "path//"
# Opaque implementation for FilePath
The underlying type of a FilePath is a
ByteArray. It is indeed
like this because for some systems (Unix systems) a
FilePath is
a null terminated array of bytes.
# FilePath and FileName for type checking validation
In order to add some constraint at compile time, it is not possible to
append (
</>) a
FilePath to another
FilePath. You can only append (
</>) a
FileName to a given
FilePath.
Deprecated: Use Path.File instead.
Hole containing a filepath for a data file
Utilities for dealing with YAML config files which contain relative
file paths.
Return the name of the file being visited.
Gets the local pathname for
File, if one exists.
This call does no blocking i/o.
Deprecated: Use Path.file instead.