Changes between Version 2 and Version 3 of ExtendedLayouts
- Jan 4, 2012 10:50:23 AM (2 years ago)
v2 v3 21 21 These examples usually have a "dead" type variable which is used exclusively for defining the monad instance and is later set to `()` for all functions using this type. To build up the desired data type either `mappend` or a variation (e.g. `Append` for blaze-html) is used. This so called "Monad" is therefor actually a hidden monoid with the clear intention to abuse the current `do`-notation. With this extension the correct `Monoid` instance can be used instead. 22 22 23 The proposed keyword for the beginning of a monoid layout is `be` . 23 The proposed keyword for the beginning of a monoid layout is `be`. 24 24 25 25 '''Translation rules'''