From 87fe9d25b9bce6c113c1bb7293a982e12ba152f0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 31 Oct 2014 12:39:50 -0400 Subject: add example multiline data constructor --- doc/coding_style.mdwn | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/coding_style.mdwn') diff --git a/doc/coding_style.mdwn b/doc/coding_style.mdwn index 101ac4f58..6968c9958 100644 --- a/doc/coding_style.mdwn +++ b/doc/coding_style.mdwn @@ -72,6 +72,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 git-annex. (Additional blocks can be used if it makes sense.) -- cgit v1.2.3