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 | Safe |
Language | Haskell98 |
Data.Semigroup.Traversable
Description
Documentation
class (NonEmptyFoldable t, Traversable t) => NonEmptyTraversable t where Source #
Minimal complete definition
Methods
traverseNE :: Semiapplicative f => (a -> f b) -> t a -> f (t b) Source #
sequenceNE :: Semiapplicative f => t (f b) -> f (t b) Source #
Instances
foldMapNEDefault :: (NonEmptyTraversable f, Semigroup m) => (a -> m) -> f a -> m Source #