Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. type TarEntryOffset = Word32

    tar Codec.Archive.Tar.Index

    An offset within a tar file. Use hReadEntry, hReadEntryHeader or hSeekEntryOffset. This is actually a tar "record" number, not a byte offset.

  2. hSeekEndEntryOffset :: Handle -> Maybe TarIndex -> IO TarEntryOffset

    tar Codec.Archive.Tar.Index

    Seek to the end of a tar file, to the position where new entries can be appended, and return that TarEntryOffset. If you have a valid TarIndex for this tar file then you should supply it because it allows seeking directly to the correct location. If you do not have an index, then this becomes an expensive linear operation because we have to read each tar entry header from the beginning to find the location immediately after the last entry (this is because tar files have a variable length trailer and we cannot reliably find that by starting at the end). In this mode, it will fail with an exception if the file is not in fact in the tar format.

  3. hSeekEntryContentOffset :: Handle -> TarEntryOffset -> IO ()

    tar Codec.Archive.Tar.Index

    Set the Handle position to the entry content position corresponding to the given TarEntryOffset. This position is where the entry content can be read using ordinary I/O operations (though you have to know in advance how big the entry content is). This is only valid if you already know the entry has a body (i.e. is a normal file).

  4. hSeekEntryOffset :: Handle -> TarEntryOffset -> IO ()

    tar Codec.Archive.Tar.Index

    Set the Handle position to the position corresponding to the given TarEntryOffset. This position is where the entry metadata can be read. If you already know the entry has a body (and perhaps know it's length), you may wish to seek to the body content directly using hSeekEntryContentOffset.

  5. indexEndEntryOffset :: TarIndex -> TarEntryOffset

    tar Codec.Archive.Tar.Index

    This is the offset immediately following the last entry in the tar file. This can be useful to append further entries into the tar file. Use with hSeekEntryOffset, or just use hSeekEndEntryOffset directly.

  6. indexNextEntryOffset :: IndexBuilder -> TarEntryOffset

    tar Codec.Archive.Tar.Index

    This is the offset immediately following the entry most recently added to the IndexBuilder. You might use this if you need to know the offsets but don't want to use the TarIndex lookup structure. Use with hSeekEntryOffset. See also nextEntryOffset.

  7. nextEntryOffset :: Entry -> TarEntryOffset -> TarEntryOffset

    tar Codec.Archive.Tar.Index

    Calculate the TarEntryOffset of the next entry, given the size and offset of the current entry. This is much like using skipNextEntry and indexNextEntryOffset, but without using an IndexBuilder.

  8. generatorSetup :: Generator -> Test -> String

    tasty-discover Test.Tasty.Discover.Internal.Generator

    Generator setup.

  9. showSetup :: Test -> String -> String

    tasty-discover Test.Tasty.Discover.Internal.Generator

    Boilerplate formatter.

  10. class ParseTime t

    time-compat Data.Time.Format.Compat

    The class of types which can be parsed given a UNIX-style time format string.

Page 1208 of many | Previous | Next