Hoogle Search
Within LTS Haskell 24.68 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
hReadEntryHeader :: Handle -> TarEntryOffset -> IO Entrytar Codec.Archive.Tar.Index Read the header for a Entry at the given TarEntryOffset in the tar file. The entryContent will contain the correct metadata but an empty file content. The Handle must be open for reading and be seekable. The Handle position is advanced to the beginning of the entry content (if any). You must check the entryContent to see if the entry is of type NormalFile. If it is, the NormalFile gives the content length and you are free to read this much data from the Handle.
entry <- Tar.hReadEntryHeader hnd case Tar.entryContent entry of Tar.NormalFile _ size -> do content <- BS.hGet hnd size ...
Of course you don't have to read it all in one go (as hReadEntry does), you can use any appropriate method to read it incrementally. In addition to I/O errors, this can throw a FormatError if the offset is wrong, or if the file is not valid tar format. There is also the lower level operation hSeekEntryOffset.hReadEntryHeaderOrEof :: Handle -> TarEntryOffset -> IO (Maybe (Entry, TarEntryOffset))tar Codec.Archive.Tar.Index This is a low level variant on hReadEntryHeader, that can be used to iterate through a tar file, entry by entry. It has a few differences compared to hReadEntryHeader:
- It returns an indication when the end of the tar file is reached.
- It does not move the Handle position to the beginning of the entry content.
- It returns the TarEntryOffset of the next entry.
formatReadP :: Format t -> ReadP ttime-compat Data.Time.Format.ISO8601.Compat Read a value in the format
formatReadPExtension :: (FormatExtension -> Format t) -> ReadP ttime-compat Data.Time.Format.ISO8601.Compat Read a value in either extended or basic format
-
diagrams-lib Diagrams.TwoD The SpreadMethod determines what happens before lGradStart and after lGradEnd. GradPad fills the space before the start of the gradient with the color of the first stop and the color after end of the gradient with the color of the last stop. GradRepeat restarts the gradient and GradReflect restarts the gradient with the stops in reverse order.
_lGradSpreadMethod :: LGradient n -> SpreadMethoddiagrams-lib Diagrams.TwoD No documentation available.
_rGradSpreadMethod :: RGradient n -> SpreadMethoddiagrams-lib Diagrams.TwoD No documentation available.
-
diagrams-lib Diagrams.TwoD For setting the spread method.
-
diagrams-lib Diagrams.TwoD For setting the spread method.
-
diagrams-lib Diagrams.TwoD.Attributes The SpreadMethod determines what happens before lGradStart and after lGradEnd. GradPad fills the space before the start of the gradient with the color of the first stop and the color after end of the gradient with the color of the last stop. GradRepeat restarts the gradient and GradReflect restarts the gradient with the stops in reverse order.