Closed recursion-ninja closed 6 years ago
I do not think that:
misusing the semigroup operator for a decade
is a fair characterisation of the situation.
Especially since as of 1.2.0.0, wl-pprint-text no longer exports <>
from the Monad module.
So the only way this particular situation could have arisen is if you were deliberately used an old version of wl-pprint-text by bypassing the .cabal file restrictions.
You're correct, there were incorrect bounds set in the cabal file.
Pretty-printing libraries seem to still be recovering from misusing the semigroup operator for a decade and the defect is transitively the compilation of your library with GHC version >= 8.4.1.
Qualified imports/usage should fix this.