Text.ParserCombinators.ReadP: use NonEmpty in Final
authorVaibhav Sagar <vaibhavsagar@gmail.com>
Mon, 18 Feb 2019 00:41:38 +0000 (19:41 -0500)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Thu, 21 Feb 2019 09:14:01 +0000 (04:14 -0500)
commit2a0be1468cf440547e2ceb93f0d01d23637affc6
treea5406d3f256b6ea29724f80e5c78ab34fd9b1e4d
parent3f73f081d675fd35ee0af0facc05a046d379ef26
Text.ParserCombinators.ReadP: use NonEmpty in Final

The `Final` constructor needed to maintain the invariant that the list
it is provided is always non-empty. Since NonEmpty is in `base` now, I
think it would be better to use it for this purpose.
libraries/base/Text/ParserCombinators/ReadP.hs