add example multiline data constructor
This commit is contained in:
parent
a4810a4757
commit
8f072c8db7
1 changed files with 8 additions and 0 deletions
|
@ -72,6 +72,14 @@ that line up with the open and close punctuation.
|
||||||
, address = "baz"
|
, 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,
|
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
|
and one for modules that are part of git-annex. (Additional blocks can be used
|
||||||
if it makes sense.)
|
if it makes sense.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue