@@ -50,7 +50,7 @@ toReport dealiaser err =
50 TypeWithoutDefinition valueName ->
50 TypeWithoutDefinition valueName ->
51 Report.simple
51 Report.simple
52 "MISSING DEFINITION"
52 "MISSING DEFINITION"
53− ("There is a type annotation for '" ++ valueName ++ "' but there"
53+ ("There is a type annotation for `" ++ valueName ++ "` but there"
54 ++ "is no corresponding definition!"
54 ++ "is no corresponding definition!"
56 ("Directly below the type annotation, put a definition like:\n\n"
56 ("Directly below the type annotation, put a definition like:\n\n"
@@ -60,7 +60,7 @@ toReport dealiaser err =
60 PortWithoutAnnotation portName ->
60 PortWithoutAnnotation portName ->
61 Report.simple
61 Report.simple
62 "PORT ERROR"
62 "PORT ERROR"
63− ("Port '" ++ portName ++ "' does not have a type annotation!")
63+ ("Port `" ++ portName ++ "` does not have a type annotation!")
64 ("Directly above the port definition, I need something like this:\n\n"
64 ("Directly above the port definition, I need something like this:\n\n"
65 ++ " port " ++ portName ++ " : Signal Int"
65 ++ " port " ++ portName ++ " : Signal Int"
@@ -78,30 +78,30 @@ toReport dealiaser err =
78 DuplicateValueDeclaration name ->
78 DuplicateValueDeclaration name ->
79 Report.simple
79 Report.simple
80 "DUPLICATE DEFINITION"
80 "DUPLICATE DEFINITION"
81− ("Naming multiple top-level values '" ++ name ++ "' makes things\n"
81+ ("Naming multiple top-level values `" ++ name ++ "` makes things\n"
82− ++ "ambiguous. When you say '" ++ name ++ "' which one do you want?"
82+ ++ "ambiguous. When you say `" ++ name ++ "` which one do you want?"
84− ("Find all the top-level values named '" ++ name ++ "' and\n"
84+ ("Find all the top-level values named `" ++ name ++ "` and\n"
85 ++ "do some renaming. Make sure the names are distinct!"
85 ++ "do some renaming. Make sure the names are distinct!"
88 DuplicateTypeDeclaration name ->
88 DuplicateTypeDeclaration name ->
89 Report.simple
89 Report.simple
90 "DUPLICATE DEFINITION"
90 "DUPLICATE DEFINITION"
91− ("Naming multiple types '" ++ name ++ "' makes things ambiguous\n"
91+ ("Naming multiple types `" ++ name ++ "` makes things ambiguous\n"
92− ++ "When you say '" ++ name ++ "' which one do you want?"
92+ ++ "When you say `" ++ name ++ "` which one do you want?"
94− ("Find all the types named '" ++ name ++ "' and\n"
94+ ("Find all the types named `" ++ name ++ "` and\n"
95 ++ "do some renaming. Make sure the names are distinct!"
95 ++ "do some renaming. Make sure the names are distinct!"
98 DuplicateDefinition name ->
98 DuplicateDefinition name ->
99 Report.simple
99 Report.simple
100 "DUPLICATE DEFINITION"
100 "DUPLICATE DEFINITION"
101− ("Naming multiple values '" ++ name ++ "' in a single let-expression makes\n"
101+ ("Naming multiple values `" ++ name ++ "` in a single let-expression makes\n"
102− ++ "things ambiguous. When you say '" ++ name ++ "' which one do you want?"
102+ ++ "things ambiguous. When you say `" ++ name ++ "` which one do you want?"
104− ("Find all the values named '" ++ name ++ "' in this let-expression and\n"
104+ ("Find all the values named `" ++ name ++ "` in this let-expression and\n"
105 ++ "do some renaming. Make sure the names are distinct!"
105 ++ "do some renaming. Make sure the names are distinct!"
@@ -135,13 +135,13 @@ unboundTypeVars :: String -> String -> [String] -> String -> Report.Report
135unboundTypeVars typeName tvar tvars revisedDeclaration =
135unboundTypeVars typeName tvar tvars revisedDeclaration =
136 Report.simple
136 Report.simple
137 "UNBOUND TYPE VARS"
137 "UNBOUND TYPE VARS"
138− ( "Not all type variables in '" ++ typeName ++ "' are listed, making sneaky\n"
138+ ( "Not all type variables in `" ++ typeName ++ "` are listed, making sneaky\n"
139 ++ "type errors possible. Unbound type variables include: "
139 ++ "type errors possible. Unbound type variables include: "
140 ++ List.intercalate ", " (tvar:tvars)
140 ++ List.intercalate ", " (tvar:tvars)
142 ( "You probably want this definition instead:\n"
142 ( "You probably want this definition instead:\n"
143 ++ concatMap ("\n "++) (lines revisedDeclaration) ++ "\n\n"
143 ++ concatMap ("\n "++) (lines revisedDeclaration) ++ "\n\n"
144− ++ "Here's why. Imagine one '" ++ typeName ++ "' where '" ++ tvar ++ "' is an Int and\n"
144+ ++ "Here's why. Imagine one `" ++ typeName ++ "` where `" ++ tvar ++ "` is an Int and\n"
145 ++ "another where it is a Bool. When we explicitly list the type variables, type\n"
145 ++ "another where it is a Bool. When we explicitly list the type variables, type\n"
146 ++ "checker can see that they are actually different types."
146 ++ "checker can see that they are actually different types."
@@ -202,7 +202,7 @@ parseErrorReport messages =
203 case unkeyword msg of
203 case unkeyword msg of
204 Just kwd ->
204 Just kwd ->
205− "It looks like the keyword '" ++ kwd ++ "' is being used as a variable.\n"
205+ "It looks like the keyword `" ++ kwd ++ "` is being used as a variable.\n"
206 ++ "Try renaming it to something else."
206 ++ "Try renaming it to something else."
207 Nothing ->
207 Nothing ->