type (++) = (<>)

Erik de Castro Lopo mle+hs at mega-nerd.com
Mon Jul 3 21:01:24 UTC 2017


Vassil Ognyanov Keremidchiev wrote:

> What do you think of making (++) the same as (<>) so we could use ++ as
> concatenation of any monoid, not just lists in Haskell 2020?
> This will be more intuitive for beginners, too.

Two symbolic operators that are synonymous seems a bit of a waste. I would
much rather see (++) be deprecated in favour of (<>). At work we have a
custom prelude which already does this.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Haskell-prime mailing list