Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
rulesFilePathFromOpts :: CliOpts -> IO (Maybe FilePath)hledger Hledger.Cli.CliOptions Get the (tilde-expanded) rules file path from options, if any.
equalFilePath :: FilePath -> FilePath -> Boolhledger Hledger.Cli.Script Equality of two FILEPATHs. If you call System.Directory.canonicalizePath first this has a much better chance of working. Note that this doesn't follow symlinks or DOSNAM~1s. Similar to normalise, this does not expand "..", because of symlinks.
x == y ==> equalFilePath x y normalise x == normalise y ==> equalFilePath x y equalFilePath "foo" "foo/" not (equalFilePath "/a/../c" "/c") not (equalFilePath "foo" "/foo") Posix: not (equalFilePath "foo" "FOO") Windows: equalFilePath "foo" "FOO" Windows: not (equalFilePath "C:" "C:/")
tupleFromFilePath :: FilePath -> FilePath -> IO (Maybe FileTuple)debian Debian.Apt.Index make a FileTuple for a file found on the local disk returns Nothing if the file does not exist.
-
filepath-bytestring System.FilePath.Posix.ByteString A literal POSIX file path
decodeFilePath :: RawFilePath -> FilePathfilepath-bytestring System.FilePath.Posix.ByteString Convert from RawFilePath to FilePath When run on Unix, this applies the filesystem encoding (see getFileSystemEncoding). When run on Windows, this decodes UTF-8.
encodeFilePath :: FilePath -> RawFilePathfilepath-bytestring System.FilePath.Posix.ByteString Convert from FilePath to RawFilePath. When run on Unix, this applies the filesystem encoding (see getFileSystemEncoding). When run on Windows, this encodes as UTF-8. the implementation of this function assumes that the filesystem encoding will not be changed while the program is running.
equalFilePath :: RawFilePath -> RawFilePath -> Boolfilepath-bytestring System.FilePath.Posix.ByteString Equality of two FilePaths. If you call System.Directory.canonicalizePath first this has a much better chance of working. Note that this doesn't follow symlinks or DOSNAM~1s.
x == y ==> equalFilePath x y normalise x == normalise y ==> equalFilePath x y equalFilePath "foo" "foo/" not (equalFilePath "foo" "/foo") Posix: not (equalFilePath "foo" "FOO") Windows: equalFilePath "foo" "FOO" Windows: not (equalFilePath "C:" "C:/")
-
filepath-bytestring System.FilePath.Windows.ByteString A literal POSIX file path
decodeFilePath :: RawFilePath -> FilePathfilepath-bytestring System.FilePath.Windows.ByteString Convert from RawFilePath to FilePath When run on Unix, this applies the filesystem encoding (see getFileSystemEncoding). When run on Windows, this decodes UTF-8.
encodeFilePath :: FilePath -> RawFilePathfilepath-bytestring System.FilePath.Windows.ByteString Convert from FilePath to RawFilePath. When run on Unix, this applies the filesystem encoding (see getFileSystemEncoding). When run on Windows, this encodes as UTF-8. the implementation of this function assumes that the filesystem encoding will not be changed while the program is running.