[Haskell-cafe] <<loop>> as result of SemigroupMonoid changes

Joey Hess id at joeyh.name
Mon Apr 30 17:42:09 UTC 2018

Dan Burton wrote:
> If you’re going to import Data.Semigroup as a sort of backwards compatibility
> shim, then I don’t think you should import it qualified. To avoid the ambiguity
> error, how about “import Data.Monoid hiding ((<>))”?

Likely mempty could be used elsewhere in the module and so Data.Monoid
would be needed (when supporting older versions of base).

mappend = (Sem.<>) seems like the simplest change to the examples on the
wiki page that would avoid the problem.

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180430/3f7bf606/attachment.sig>

More information about the Haskell-Cafe mailing list