snoyberg / mono-traversable

Type classes for mapping, folding, and traversing monomorphic containers
155 stars 64 forks source link

Add dropPrefix and dropSuffix functions #155

Closed cdepillabout closed 6 years ago

cdepillabout commented 6 years ago

This PR adds the dropPrefix and dropSuffix functions, as discussed in https://github.com/snoyberg/mono-traversable/issues/139#issuecomment-353729133.

This PR also adds QuickCheck tests for dropPrefix and dropSuffix.

A @since annotation has been added to the functions with version 1.0.7.0. A note about dropPrefix anddropSuffix` has been added to the ChangeLog under version 1.0.7.0. Please let me know if I need to update these versions.

This PR should close #139.

snoyberg commented 6 years ago

Thanks!