Skip to content
  • Sylvain Henry's avatar
    Replace (ptext .. sLit) with `text` · 1d03d8be
    Sylvain Henry authored and Marge Bot's avatar Marge Bot committed
    1. `text` is as efficient as `ptext . sLit` thanks to the rewrite rules
    
    2. `text` is visually nicer than `ptext . sLit`
    
    3. `ptext . sLit` encourages using one `ptext` for several `sLit` as in:
    
        ptext $ case xy of
          ... -> sLit ...
          ... -> sLit ...
    
      which may allocate SDoc's TextBeside constructors at runtime instead
      of sharing them into CAFs.
    1d03d8be