Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
yesod-page-cursor Yesod.Page No documentation available.
-
alsa-mixer Sound.ALSA.Mixer No documentation available.
-
folds Data.Fold.Internal No documentation available.
-
verset Verset Beware that Data.Semigroup.Last is different from Data.Monoid.Last. The former simply returns the last value, so x <> Data.Semigroup.Last Nothing = Data.Semigroup.Last Nothing. The latter returns the last non-Nothing, thus x <> Data.Monoid.Last Nothing = x.
Examples
>>> Last 0 <> Last 10 Last {getLast = 10}
>>> sconcat $ Last 1 :| [ Last n | n <- [2..]] Last {getLast = * hangs forever *
-
verset Verset No documentation available.
last :: HasCallStack => [a] -> abase Prelude Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.
Examples
>>> last [1, 2, 3] 3
>>> last [1..] * Hangs forever *
>>> last [] *** Exception: Prelude.last: empty list
last :: HasCallStack => [a] -> abase Data.List Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.
Examples
>>> last [1, 2, 3] 3
>>> last [1..] * Hangs forever *
>>> last [] *** Exception: Prelude.last: empty list
last :: Foldable1 t => t a -> abase Data.Foldable1 The last element of a non-empty structure.
>>> last (1 :| [2, 3, 4]) 4
-
base Data.List.NonEmpty Extract the last element of the stream.
last :: HasCallStack => [a] -> abase GHC.List Extract the last element of a list, which must be finite and non-empty. WARNING: This function is partial. Consider using unsnoc instead.
Examples
>>> last [1, 2, 3] 3
>>> last [1..] * Hangs forever *
>>> last [] *** Exception: Prelude.last: empty list