Commit 08d8b73
committed
control wrapping of type signatures
Signatures are best wrapped before or after:
- the "::" following the name;
- the "=>" following the type-class constraints; or
- a "->" separating argument types.
This wrapping is undesirable:
get :: Accessible a => TypeRep b -> String -> a -> Maybe
b
This wrapping is preferable:
get :: Accessible a => TypeRep b -> String -> a ->
Maybe b
To achieve the desired wrapping we replace SPACE with NO-BREAK SPACE in
positions where wrapping should not occur. For example:
get :: Accessible_a => TypeRep_b -> String -> a ->
Maybe_b
Underscores represent U+00A0 in the example above.1 parent 0e8f30e commit 08d8b73
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
19 | 40 | | |
20 | 41 | | |
21 | 42 | | |
| |||
25 | 46 | | |
26 | 47 | | |
27 | 48 | | |
28 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
29 | 52 | | |
30 | 53 | | |
31 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments