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.

  1. rulesFilePathFromOpts :: CliOpts -> IO (Maybe FilePath)

    hledger Hledger.Cli.CliOptions

    Get the (tilde-expanded) rules file path from options, if any.

  2. equalFilePath :: FilePath -> FilePath -> Bool

    hledger 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:/")
    

  3. 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.

  4. type RawFilePath = ByteString

    filepath-bytestring System.FilePath.Posix.ByteString

    A literal POSIX file path

  5. decodeFilePath :: RawFilePath -> FilePath

    filepath-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.

  6. encodeFilePath :: FilePath -> RawFilePath

    filepath-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.

  7. equalFilePath :: RawFilePath -> RawFilePath -> Bool

    filepath-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:/")
    

  8. type RawFilePath = ByteString

    filepath-bytestring System.FilePath.Windows.ByteString

    A literal POSIX file path

  9. decodeFilePath :: RawFilePath -> FilePath

    filepath-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.

  10. encodeFilePath :: FilePath -> RawFilePath

    filepath-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.

Page 25 of many | Previous | Next