| Branch: | Tag: | Revision:

root / doc / dev-codestyle.rst @ 0565f862

History | View | Annotate | Download (17.8 kB)

# Date Author Comment
16b85a3c 01/27/2014 11:38 am Klaus Aehlig

Haskell style: explicit errors, visible in the type

While it is already standard in the Ganeti code base, explicitly
document that we do not like Exceptions and use sum types instead.

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Petr Pudlak <>

b10df4de 01/27/2014 11:38 am Klaus Aehlig

Clarify spacing in record syntax

So far, our code base does not have a consistent way of spacing
records. To work towards more consistency, add a recommendation
into out style guide. We standardize on what seems most common
in the Haskell world and also is the dominant form in our code...

7bd8ce44 01/27/2014 11:38 am Petr Pudlak

Improve the point-free section of the style guide

Distinguish declaring functions in the point-free style and using
a very similar technique to avoid parentheses (which isn't technically

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

a41a1eec 01/27/2014 11:38 am Santi Raffa

Add code style document to documentation

The Ganeti code style has been stored on the project wiki at:

This commit combines the two pages into an .rst file with minimal...