什么<>算子意思

时间:2013-10-10 20:05:12

标签: haskell operators functor

以下代码中的运营商<> 的含义是什么?

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

谁能告诉我?

1 个答案:

答案 0 :(得分:8)

来自Data.Monoid的运营商:

(<>) = mappend‌​

对于此类运营商,您通常可以HoogleHayoo