[Haskell-cafe] Generalizing (++) for monoids instead of using (<>)
Alberto G. Corona
agocorona at gmail.com
Fri May 4 13:46:08 CEST 2012
So the transition should not be so problematic. An OldPrelude.hs may
be created easily with this.
Once again, thinking aloud.
2012/5/4 Malcolm Wallace <malcolm.wallace at me.com>:
> 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.(++)
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
More information about the Haskell-Cafe