on master help sign in
add links to import hints on import syntax errors
9b7a6e8Evan Czaplicki
compiler/src/Reporting/Error/Syntax.hs+3
@@ -1010,6 +1010,7 @@ toParseErrorReport source modul =
1010 ]
1010 ]
1011 , D.reflow $
1011 , D.reflow $
1012 "Notice that the module names all start with capital letters. That is required!"
1012 "Notice that the module names all start with capital letters. That is required!"
1013+ , D.reflowLink "Read" "imports" "to learn more."
1013 ]
1014 ]
1014 )
1015 )
1015
1016
@@ -1036,6 +1037,7 @@ toParseErrorReport source modul =
1036 ]
1037 ]
1037 , D.reflow $
1038 , D.reflow $
1038 "Notice that the alias always starts with a capital letter. That is required!"
1039 "Notice that the alias always starts with a capital letter. That is required!"
1040+ , D.reflowLink "Read" "imports" "to learn more."
1039 ]
1041 ]
1040 )
1042 )
1041
1043
@@ -1123,6 +1125,7 @@ toImportReport source row col =
1123 ]
1125 ]
1124 , D.reflow $
1126 , D.reflow $
1125 "You are probably trying to import a different module, but try to make it look like one of these examples!"
1127 "You are probably trying to import a different module, but try to make it look like one of these examples!"
1128+ , D.reflowLink "Read" "imports" "to learn more."
1126 ]
1129 ]
1127 )
1130 )
1128
1131