Hoogle Search

Within LTS Haskell 24.35 (ghc-9.10.3)

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

  1. getLast :: Last a -> a

    base Data.Semigroup

    No documentation available.

  2. haLastDecode :: Handle__ -> !IORef (dec_state, Buffer Word8)

    base GHC.IO.Handle.Types

    The byte buffer just before we did our last batch of decoding.

  3. unsafeLast :: ByteString -> Word8

    bytestring Data.ByteString.Unsafe

    A variety of last for non-empty ByteStrings. unsafeLast omits the check for the empty case. As with unsafeHead, the programmer must provide a separate proof that the ByteString is non-empty.

  4. periodLastDay :: DayPeriod p => p -> Day

    time Data.Time.Calendar

    Returns the last Day in a period of days.

  5. weekLastDay :: DayOfWeek -> Day -> Day

    time Data.Time.Calendar

    Returns the last day of a week containing the given Day. Examples:

    >>> weekLastDay Sunday (YearMonthDay 2022 02 21)
    YearMonthDay 2022 2 26
    
    >>> weekLastDay Monday (YearMonthDay 2022 02 21)
    YearMonthDay 2022 2 27
    
    >>> weekLastDay Tuesday (YearMonthDay 2022 02 21)
    YearMonthDay 2022 2 21
    

  6. hLastModified :: HeaderName

    http-types Network.HTTP.Types

    Last-Modified

  7. hLastModified :: HeaderName

    http-types Network.HTTP.Types.Header

    Last-Modified

  8. _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
    

  9. _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
    

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

    test-framework Test.Framework.Providers.API

    No documentation available.

Page 66 of many | Previous | Next