Module

Data.Maybe.Last

#Last

newtype Last a

Monoid returning the last (right-most) non-Nothing value.

Last (Just x) <> Last (Just y) == Last (Just y)
Last (Just x) <> Last Nothing == Last (Just x)
Last Nothing <> Last Nothing == Last Nothing
mempty :: Last _ == Last Nothing

Constructors

Instances

Modules