importers/ding2tei/doc/style
raw| 1 | Coding style |
| 2 | ============ |
| 3 | |
| 4 | Basis: |
| 5 | - https://github.com/tibbe/haskell-style-guide/blob/master/haskell-style.md |
| 6 | - https://haskell-haddock.readthedocs.io/en/latest/markup.html |
| 7 | |
| 8 | |
| 9 | Deviation / exceptions |
| 10 | ---------------------- |
| 11 | |
| 12 | Line length: max. 79 chars |
| 13 | |
| 14 | Indentation: |
| 15 | - generally: 2 spaces |
| 16 | - `where', `deriving': 1 space |
| 17 | |
| 18 | Blank lines: |
| 19 | - There may be more than one in succession, if it improves structure or |
| 20 | readability. |