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. lookAhead :: Parser i a -> Parser i a

    attoparsec Data.Attoparsec.Combinator

    Apply a parser without consuming any input.

  2. type RequestHeaders = [Header]

    http-types Network.HTTP.Types

    A list of Headers. Same type as ResponseHeaders, but useful to differentiate in type signatures.

  3. type ResponseHeaders = [Header]

    http-types Network.HTTP.Types

    A list of Headers. Same type as RequestHeaders, but useful to differentiate in type signatures.

  4. methodHead :: Method

    http-types Network.HTTP.Types

    HEAD Method

  5. requestHeaderFieldsTooLarge431 :: Status

    http-types Network.HTTP.Types

    Request Header Fields Too Large 431 (RFC 6585)

  6. type RequestHeaders = [Header]

    http-types Network.HTTP.Types.Header

    A list of Headers. Same type as ResponseHeaders, but useful to differentiate in type signatures.

  7. type ResponseHeaders = [Header]

    http-types Network.HTTP.Types.Header

    A list of Headers. Same type as RequestHeaders, but useful to differentiate in type signatures.

  8. methodHead :: Method

    http-types Network.HTTP.Types.Method

    HEAD Method

  9. requestHeaderFieldsTooLarge431 :: Status

    http-types Network.HTTP.Types.Status

    Request Header Fields Too Large 431 (RFC 6585)

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

    lens Control.Lens.Combinators

    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
    

Page 129 of many | Previous | Next