Add Functor, Applicative, Monad instances for First, Last
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 28 Jul 2014 12:50:28 +0000 (07:50 -0500)
committerAustin Seipp <austin@well-typed.com>
Mon, 28 Jul 2014 14:29:18 +0000 (09:29 -0500)
commit9a7440c0dc038a19432e86923ac30ade7bcea3e7
tree1e760fae9ba05fd1fe187a27131ad093613b46df
parent4ee8c27302e6bb3892e7c47a7111b0683d032c07
Add Functor, Applicative, Monad instances for First, Last

Summary:
This was proposed in 2011 [1] with no serious objections although wasn't
implemented until it was again mentioned in 2014 [2].

[1] http://www.haskell.org/pipermail/libraries/2011-January/015552.html
[2] http://www.haskell.org/pipermail/libraries/2014-June/023228.html

Test Plan: None

Reviewers: austin

Reviewed By: austin

Subscribers: hvr, phaskell, simonmar, relrod, carter, ekmett

Differential Revision: https://phabricator.haskell.org/D81
libraries/base/Control/Applicative.hs
libraries/base/Data/Monoid.hs