summaryrefslogtreecommitdiff
path: root/doc/coding_style.mdwn
diff options
context:
space:
mode:
authorJoey Hess2014-10-31 12:39:45 -0400
committerJoey Hess2014-10-31 12:41:43 -0400
commit5a6ff0b0f35831e3c8258f5a3407c97089e715ed (patch)
treee7a176065ac5dd63149d088eb2c694e4890b8982 /doc/coding_style.mdwn
parent3dbb44a787ebc0f26de1e045fbabe9b10eeadcf8 (diff)
update
Diffstat (limited to 'doc/coding_style.mdwn')
-rw-r--r--doc/coding_style.mdwn8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/coding_style.mdwn b/doc/coding_style.mdwn
index 1b6c525e..10b98328 100644
--- a/doc/coding_style.mdwn
+++ b/doc/coding_style.mdwn
@@ -70,6 +70,14 @@ that line up with the open and close punctuation.
, address = "baz"
}
+Similarly, data structures line up the leading `=` with the following `|`
+
+ data Foo
+ = Bar
+ | Baz
+ | Quux Foo
+ deriving (Eq, Ord)
+
Module imports are separated into two blocks, one for third-party modules,
and one for modules that are part of propellor. (Additional blocks can be used
if it makes sense.)