Hoogle Search

Within LTS Haskell 24.12 (ghc-9.10.3)

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

  1. hLastModified :: HeaderName

    http-types Network.HTTP.Types.Header

    Last-Modified

  2. _last :: Snoc s s a a => Traversal' s a

    lens Control.Lens.Combinators

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

    >>> [a,b,c]^?!_last
    c
    
    >>> []^?_last
    Nothing
    
    >>> [a,b,c] & _last %~ f
    [a,b,f c]
    
    >>> [1,2]^?_last
    Just 2
    
    >>> [] & _last .~ 1
    []
    
    >>> [0] & _last .~ 2
    [2]
    
    >>> [0,1] & _last .~ 2
    [0,2]
    
    This Traversal is not limited to lists, however. We can also work with other containers, such as a Vector.
    >>> Vector.fromList "abcde" ^? _last
    Just 'e'
    
    >>> Vector.empty ^? _last
    Nothing
    
    >>> (Vector.fromList "abcde" & _last .~ 'Q') == Vector.fromList "abcdQ"
    True
    
    _last :: Traversal' [a] a
    _last :: Traversal' (Seq a) a
    _last :: Traversal' (Vector a) a
    

  3. _last :: Snoc s s a a => Traversal' s a

    lens Control.Lens.Cons

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

    >>> [a,b,c]^?!_last
    c
    
    >>> []^?_last
    Nothing
    
    >>> [a,b,c] & _last %~ f
    [a,b,f c]
    
    >>> [1,2]^?_last
    Just 2
    
    >>> [] & _last .~ 1
    []
    
    >>> [0] & _last .~ 2
    [2]
    
    >>> [0,1] & _last .~ 2
    [0,2]
    
    This Traversal is not limited to lists, however. We can also work with other containers, such as a Vector.
    >>> Vector.fromList "abcde" ^? _last
    Just 'e'
    
    >>> Vector.empty ^? _last
    Nothing
    
    >>> (Vector.fromList "abcde" & _last .~ 'Q') == Vector.fromList "abcdQ"
    True
    
    _last :: Traversal' [a] a
    _last :: Traversal' (Seq a) a
    _last :: Traversal' (Vector a) a
    

  4. dropLast :: Int -> [a] -> [a]

    test-framework Test.Framework.Providers.API

    No documentation available.

  5. improvingLast :: (a :~> b) -> b

    test-framework Test.Framework.Providers.API

    No documentation available.

  6. listToMaybeLast :: [a] -> Maybe a

    test-framework Test.Framework.Providers.API

    No documentation available.

  7. cookie_last_access_time :: Cookie -> UTCTime

    http-client Network.HTTP.Client

    No documentation available.

  8. cookie_last_access_time :: Cookie -> UTCTime

    http-client Network.HTTP.Client.Internal

    No documentation available.

  9. _last :: Snoc s s a a => Traversal' s a

    microlens Lens.Micro

    _last gives you access to the last element of the list:

    >>> "Hello." ^? _last
    '.'
    
    See documentation for _head, as _last and _head are pretty similar.

  10. getLast :: Last a -> Maybe a

    base-compat Data.Monoid.Compat

    No documentation available.

Page 67 of many | Previous | Next