What does the operator <> mean/do in the following code?
class Functor f => Foldable f where
fold :: Monoid m => f m -> m
foldMap :: Monoid m => (a -> m) -> f a -> m
instance Foldable [] where
fold = foldr (<>) mempty
Can anyone tell me?
It's an operator from Data.Monoid:
(<>) = mappend
You can often Hoogle or Hayoo for such operators.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With