Closed DavidMazarro closed 3 months ago
@jkarni would you mind giving your opinion on this?
@DavidMazarro Thanks for the PR!
(I added these last two commits because I was unfamiliar with doctest
and didn't know the code examples were checked, my bad!)
Feel free to run the CI on this one again, but other than that it's ready to merge from my side :)
@tchoutri could you run the CI workflow again?
Alright, I have looked up the usage of AtLeastOneFragment
across openn-source codebases on github and hackage, looks like we can get away with this breaking change.
Thanks @DavidMazarro!
Unless I'm misunderstanding the
FragmentUnique
type family, it's checking that there's at most one fragment in the API type. In that case, theAtLeastOneFragment
name is not only confusing, but potentially misleading. This PR renames the type class toAtMostOneFragment
.In addition, I did some small changes to the documentation, I moved the explanation of the type class to the type class definition (previously the comment was under the
Verb
instance) and reworded it a bit.