Nope,
Other than possibly adding library clutter.
I have a package that provides many instances and common functions for ZipLists. Eventually I might stick it on hackage, but currently it's here: http://github.com/jvranish/ZipList
I really with there was a way to switch Applicative (or other) instances for list (or other) types.
Then we wouldn't have this problem.
- Job
I find the following instance very convenient:------------------------------------------------------------------------import Data.Monoidimport Control.Applicativeinstance Monoid a => Monoid (ZipList a) wheremempty = pure memptymappend = liftA2 mappend------------------------------------------------------------------------
Any reason why it is not in the standard library?Thanks,Vladimir
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe