on develop help sign in
Pad stylish-haskell columns to get record alignment

I couldn't find a setting that would let us keep columns at 80 but still allow record alignment to break the rule when needed. We could roll this back but it will cause many generated files to have inconsequential diffs as all their record fields become de-aligned.

commit1ee9ab619858dccd7bdf6c6e227d37c2d2769c44 authorMichael Xavier <michael@michaelxavier.net> dateThu 20 Dec 2018, 09:53 (8 years ago) parentbdfe880
1 file changed+2−1
gen/.stylish-haskell.yaml+2−1
gen/.stylish-haskell.yaml+2−1
@@ -10,7 +10,8 @@ steps:
1010 records: true
1111 - trailing_whitespace: {}
1212
13−columns: 80
13+# In recent stylish-haskell versions, record fields do not get aligned at all if any one of the fields length exceeds columns, so we pad it out from 80.
14+columns: 140
1415
1516language_extensions:
1617 - MultiParamTypeClasses