| Safe Haskell | Safe-Inferred |
|---|
Data.Monoid.Nonfree
Documentation
Nonfree nonmonoid.
toN :: Foldable t => t a -> N aSource
A version of toList that extracts the full monoid append
tree rather than flattening it to a list.
fromN :: Traversable t => N b -> t a -> t bSource
Given a monoid append tree and a Traversable structure with exactly the
same shape, put values from the former into the latter. This will fail with
an error if the structure isn't identical.