Changes between Version 2 and Version 3 of ExtendedLayouts


Ignore:
Timestamp:
Jan 4, 2012 10:50:23 AM (2 years ago)
Author:
nsch
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ExtendedLayouts

    v2 v3  
    2121These 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. 
    2222 
    23 The proposed keyword for the beginning of a monoid layout is `be`. 
     23The proposed keyword for the beginning of a monoid layout is `be` (as in "don't `do` anything"). 
    2424 
    2525'''Translation rules'''