[Haskell-cafe] Generalizing (++) for monoids instead of using (<>)

Malcolm Wallace malcolm.wallace at me.com
Fri May 4 11:28:50 CEST 2012


On 4 May 2012, at 10:02, Alberto G. Corona wrote:

> Restrict (++)  String -> String -> String
> 
> that locally would restrict the type within the module.

import qualified Prelude
import Prelude hiding ((++))

(++) :: String -> String -> String
(++) = Prelude.(++)



More information about the Haskell-Cafe mailing list