@@ -328,15 +328,15 @@ keyword kwd =
328328 "KEYWORD=" ++ kwd
329329
330330
331−prime :: String
332−prime =
333− "PRIME"
331+prime :: String -> String
332+prime var =
333+ "PRIME=" ++ var
334334
335335
336336data SpecialMessage
337337 = MsgKeyword String
338+ | MsgPrime String
338339 | MsgTab
339− | MsgPrime
340340
341341
342342extractSpecialMessage :: String -> Maybe SpecialMessage
@@ -344,12 +344,12 @@ extractSpecialMessage message =
344344 if List.isPrefixOf "KEYWORD=" message then
345345 Just $ MsgKeyword (drop (length "KEYWORD=") message)
346346
347+ else if List.isPrefixOf "PRIME=" message then
348+ Just $ MsgPrime (drop (length "PRIME=") message)
349+
347350 else if tab == message then
348351 Just MsgTab
349352
350− else if prime == message then
351− Just MsgPrime
352−
353353 else
354354 Nothing
355355
@@ -397,16 +397,16 @@ parseErrorReport messages =
397397 , Just "Rename it to something else."
398398 )
399399
400+ Just (MsgPrime var) ->
401+ ( "Ran into a single quote in a variable name. This was removed in 0.18!"
402+ , Just $ "Change it to a number or an underscore, like " ++ var ++ "_ or " ++ var ++ "1"
403+ )
404+
400405 Just MsgTab ->
401406 ( "A tab character was found, but all whitespace (including indentation) must be spaces not tabs."
402407 , Just "I am looking for spaces, not tabs."
403408 )
404409
405− Just MsgPrime ->
406− ( "Ran into a single quote in a variable name. This was removed in 0.18!"
407− , Just "Change it to a number or an underscore: x' => x1"
408− )
409−
410410 Nothing ->
411411 ( msg
412412 , Nothing