on master help sign in
add note about counting the length in bytes in elm.json
commit2bcebaf4ab3517abcfaaeffa66da9f2d347521e4 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 16 Jul 2019, 17:14 (7 years ago) parent8b3cbab
1 file changed+20−8
builder/src/Reporting/Exit.hs+20−8
builder/src/Reporting/Exit.hs+20−8
@@ -1156,10 +1156,16 @@ toOutlineProblemReport path source _ region problem =
11561156 toSnippet "HEADER TOO LONG" Nothing
11571157 ( D.reflow $
11581158 "I got stuck while reading your elm.json file. This section header is too long:"
1159− , D.fillSep
1160− ["I","need","it","to","be"
1161− ,D.green "under",D.green "20",D.green "characters"
1162− ,"so","it","renders","nicely","on","the","package","website!"
1159+ , D.stack
1160+ [ D.fillSep
1161+ ["I","need","it","to","be"
1162+ ,D.green "under",D.green "20",D.green "bytes"
1163+ ,"so","it","renders","nicely","on","the","package","website!"
1164+ ]
1165+ , D.toSimpleNote
1166+ "I count the length in bytes, so using non-ASCII characters costs extra.\
1167+ \ Please report your case at https://github.com/elm/compiler/issues if this seems\
1168+ \ overly restrictive for your needs."
11631169 ]
11641170 )
11651171
@@ -1204,10 +1210,16 @@ toOutlineProblemReport path source _ region problem =
12041210 toSnippet "SUMMARY TOO LONG" Nothing
12051211 ( D.reflow $
12061212 "I got stuck while reading your elm.json file. Your \"summary\" is too long:"
1207− , D.fillSep
1208− ["I","need","it","to","be"
1209− ,D.green "under",D.green "80",D.green "characters"
1210− ,"so","it","renders","nicely","on","the","package","website!"
1213+ , D.stack
1214+ [ D.fillSep
1215+ ["I","need","it","to","be"
1216+ ,D.green "under",D.green "80",D.green "bytes"
1217+ ,"so","it","renders","nicely","on","the","package","website!"
1218+ ]
1219+ , D.toSimpleNote
1220+ "I count the length in bytes, so using non-ASCII characters costs extra.\
1221+ \ Please report your case at https://github.com/elm/compiler/issues if this seems\
1222+ \ overly restrictive for your needs."
12111223 ]
12121224 )
12131225