on master help sign in
add note about counting the length in bytes in elm.json
2bcebafEvan Czaplicki
builder/src/Reporting/Exit.hs+20−8
@@ -1156,10 +1156,16 @@ toOutlineProblemReport path source _ region problem =
1156 toSnippet "HEADER TOO LONG" Nothing
1156 toSnippet "HEADER TOO LONG" Nothing
1157 ( D.reflow $
1157 ( D.reflow $
1158 "I got stuck while reading your elm.json file. This section header is too long:"
1158 "I got stuck while reading your elm.json file. This section header is too long:"
1159+ , D.stack
1159− , D.fillSep
1160+ [ D.fillSep
1160− ["I","need","it","to","be"
1161+ ["I","need","it","to","be"
1161− ,D.green "under",D.green "20",D.green "characters"
1162+ ,D.green "under",D.green "20",D.green "bytes"
1162− ,"so","it","renders","nicely","on","the","package","website!"
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."
1163 ]
1169 ]
1164 )
1170 )
1165
1171
@@ -1204,10 +1210,16 @@ toOutlineProblemReport path source _ region problem =
1204 toSnippet "SUMMARY TOO LONG" Nothing
1210 toSnippet "SUMMARY TOO LONG" Nothing
1205 ( D.reflow $
1211 ( D.reflow $
1206 "I got stuck while reading your elm.json file. Your \"summary\" is too long:"
1212 "I got stuck while reading your elm.json file. Your \"summary\" is too long:"
1213+ , D.stack
1207− , D.fillSep
1214+ [ D.fillSep
1208− ["I","need","it","to","be"
1215+ ["I","need","it","to","be"
1209− ,D.green "under",D.green "80",D.green "characters"
1216+ ,D.green "under",D.green "80",D.green "bytes"
1210− ,"so","it","renders","nicely","on","the","package","website!"
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."
1211 ]
1223 ]
1212 )
1224 )
1213
1225