Permalink
Browse files

Update Data/Functor/Extend.hs

Little edit: replaced documentation using names from Control.Comonad in Data.Functor.Extend

More to come
  • Loading branch information...
1 parent 77b2326 commit 3b950cdef1b5701f4069a6b6b1e24063bd67c03f @Taneb Taneb committed Nov 4, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Data/Functor/Extend.hs
View
@@ -27,11 +27,11 @@ import Data.Tree
class Functor w => Extend w where
-- |
- -- > duplicate = extend id
- -- > fmap (fmap f) . duplicate = duplicate . fmap f
+ -- > duplicated = extended id
+ -- > fmap (fmap f) . duplicated = duplicated . fmap f
duplicated :: w a -> w (w a)
-- |
- -- > extend f = fmap f . duplicate
+ -- > extended f = fmap f . duplicated
extended :: (w a -> b) -> w a -> w b
extended f = fmap f . duplicated

0 comments on commit 3b950cd

Please sign in to comment.