Skip to content

Text.ParserCombinators.ReadP: use NonEmpty in Final

Vaibhav Sagar requested to merge vaibhavsagar/ghc:vs-nonempty-readp into master

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.

Edited by Alec Theriault

Merge request reports