Function namesFromLabelsWith takes as argument a function that receives a NonEmpty String, but the documentation does not explain what this list contains.
The documented example just takes the last value of that list to obtain the Haskell type.
I have fiddled with this function in a REPL but I always get back a list of exactly 1 element.
Can you explain (and ideally, add to the function documentation) what this list may contain, besides the last element always being the Haskell field name?