Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

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

  1. computeOverhead :: HashTable s k v -> ST s Double

    hashtables Data.HashTable.ST.Linear

    See the documentation for this function in Data.HashTable.Class#v:computeOverhead.

  2. xml_header :: String

    xml Text.XML.Light.Output

    The XML 1.0 header

  3. thead_ :: Term arg result => arg -> result

    lucid Lucid.Html5

    thead element

  4. unsafeHead :: Storable a => Vector a -> a

    storablevector Data.StorableVector.Base

    A variety of head for non-empty Vectors. unsafeHead omits the check for the empty case, so there is an obligation on the programmer to provide a proof that the Vector is non-empty.

  5. hReadEntryHeader :: Handle -> TarEntryOffset -> IO Entry

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

  6. 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.
    After this action, the Handle position is not in any useful place. If you want to skip to the next entry, take the TarEntryOffset returned and use hReadEntryHeaderOrEof again. Or if having inspected the Entry header you want to read the entry content (if it has one) then use hSeekEntryContentOffset on the original input TarEntryOffset.

  7. _head :: Cons s s a a => Traversal' s a

    diagrams-lib Diagrams.Prelude

    A Traversal reading and writing to the head of a non-empty container.

    >>> [a,b,c]^? _head
    Just a
    
    >>> [a,b,c] & _head .~ d
    [d,b,c]
    
    >>> [a,b,c] & _head %~ f
    [f a,b,c]
    
    >>> [] & _head %~ f
    []
    
    >>> [1,2,3]^?!_head
    1
    
    >>> []^?_head
    Nothing
    
    >>> [1,2]^?_head
    Just 1
    
    >>> [] & _head .~ 1
    []
    
    >>> [0] & _head .~ 2
    [2]
    
    >>> [0,1] & _head .~ 2
    [2,1]
    
    This isn't limited to lists. For instance you can also traverse the head of a Seq:
    >>> Seq.fromList [a,b,c,d] & _head %~ f
    fromList [f a,b,c,d]
    
    >>> Seq.fromList [] ^? _head
    Nothing
    
    >>> Seq.fromList [a,b,c,d] ^? _head
    Just a
    
    _head :: Traversal' [a] a
    _head :: Traversal' (Seq a) a
    _head :: Traversal' (Vector a) a
    

  8. _arrowHead :: ArrowOpts n -> ArrowHT n

    diagrams-lib Diagrams.TwoD

    No documentation available.

  9. _headGap :: ArrowOpts n -> Measure n

    diagrams-lib Diagrams.TwoD

    No documentation available.

  10. _headLength :: ArrowOpts n -> Measure n

    diagrams-lib Diagrams.TwoD

    No documentation available.

Page 177 of many | Previous | Next