[Haskell-cafe] Generalizing (++) for monoids instead of using (<>)
Alberto G. Corona
agocorona at gmail.com
Fri May 4 13:46:08 CEST 2012
Fine ;)
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
> http://www.haskell.org/mailman/listinfo/haskell-cafe
More information about the Haskell-Cafe
mailing list