Skip to content

Commit

Permalink
Derive Show, Eq, Ord, Read for Control.Applicative.ZipList; fixes #5787
Browse files Browse the repository at this point in the history
Patch from merijn.
  • Loading branch information
Ian Lynagh committed Jul 7, 2013
1 parent 91a7f58 commit db6d589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Control/Applicative.hs
Expand Up @@ -268,7 +268,7 @@ instance (ArrowZero a, ArrowPlus a) => Alternative (WrappedArrow a b) where
--
-- @f '<$>' 'ZipList' xs1 '<*>' ... '<*>' 'ZipList' xsn = 'ZipList' (zipWithn f xs1 ... xsn)@
--
newtype ZipList a = ZipList { getZipList :: [a] }
newtype ZipList a = ZipList { getZipList :: [a] } deriving (Show, Eq, Ord, Read)

instance Functor ZipList where
fmap f (ZipList xs) = ZipList (map f xs)
Expand Down

0 comments on commit db6d589

Please sign in to comment.