... | ... | @@ -70,6 +70,14 @@ mappend=(<>) |
|
|
|
|
|
- Move the now deprecated `mappend` method out of the `Monoid` class, and possibly turn `mappend` into a legacy top-level binding (c.f. "Monad of no `return` Proposal")
|
|
|
|
|
|
## Writing compatible code
|
|
|
|
|
|
```
|
|
|
importData.Semigroup-- re-exports Data.Monoid (w/ Semigroup((<>)))instanceSemigroupFoowhere(<>)=…instanceMonoidFoowhere
|
|
|
mempty =…#if!(MIN_VERSION_base(5,0,0))-- assumption: Semigroup becomes superclass w/ base-5.0.0
|
|
|
mappend =(<>)#endif
|
|
|
```
|
|
|
|
|
|
---
|
|
|
|
|
|
TODO ...integrate migration roadmap outlined in [ http://permalink.gmane.org/gmane.comp.lang.haskell.libraries/24526](http://permalink.gmane.org/gmane.comp.lang.haskell.libraries/24526) |
|
|
\ No newline at end of file |