summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess2014-10-31 17:57:17 -0400
committerJoey Hess2014-10-31 17:57:17 -0400
commit85262917891727aedfec998bcd9a68820e818893 (patch)
treec5499983780f9a9cedc315dfd22969da657845a6 /doc
parent218574a4c46049de1e979a4d2aff3a9b31fbd966 (diff)
parentca3dff2566a36245fdede353a445b35aaf5765b4 (diff)
Merge branch 'joeyconfig'
Diffstat (limited to 'doc')
-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.)