Copyright | (C) 2011-2015 Edward Kmett |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | provisional |
Portability | portable |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Documentation
class Alt f => Plus (f :: Type -> Type) where Source #
Instances
psum :: (Foldable t, Plus f) => t (f a) -> f a Source #
The sum of a collection of actions, generalizing concat
.
>>>
psum [Just "Hello", Nothing, Just "World"]
Just "Hello"
Since: 5.3.6
module Data.Functor.Alt