Elaborate further on ZipList Applicative docs
authorChris Martin <ch.martin@gmail.com>
Sun, 12 Mar 2017 19:15:29 +0000 (15:15 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 13 Mar 2017 17:53:35 +0000 (13:53 -0400)
commitae0ccf8c16f5ed394ab01a1863abd98a7a44ab60
treecd15ffdc2e1b12ba4691a13a8bb7a570b7cb0131
parent2c78def693c5c7a3f796a64444ffa4a7e2825d59
Elaborate further on ZipList Applicative docs

I was initially confused when I read "zipWithn" in the haddock for
ZipList, went looking for a function named "zipWithn", and found that
it didn't exist. This expands the docs to clarify that we're referring
to the family of functions [zipWith, zipWith3, zipWith4, ...],
capitalizes the letter "n" in "zipWithN" in attempt to make that more
readable, and gives an example.

I also moved this documentation from ZipList itself to the Applicative
instance, so that it will show up in both the Ziplist documentation and
in the list of Applicative instances.

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3324
libraries/base/Control/Applicative.hs