
25 Mar
2007
25 Mar
'07
10:25 a.m.
Stefan O'Rear wrote:
On Sat, Mar 24, 2007 at 08:05:25PM +0000, Paul Johnson wrote:
strings, are instances of the Monoid class (i.e. they implement mplus in the way you would expect). You just have to wrap a function around
Actually they don't.
stefan@stefans:/tmp$ ghc-6.4.2 -v0 -e 'main' X.hs ABend stefan@stefans:/tmp$ ghc-6.6 -v0 -e 'main' X.hs AendBend stefan@stefans:/tmp$ cat X.hs import Data.Monoid main = putStrLn $ (str1 `mappend` str2) "end" str1 = ("A" ++) str2 = ("B" ++)
Does this mean that the semantics have changed? If so, which one is correct? Paul