@@ -878,10 +878,7 @@ class_ syn = do (doc, argDocs, acc)
878 classKeyword = reservedHL "interface"
878 classKeyword = reservedHL "interface"
879 <|> do reservedHL "class"
879 <|> do reservedHL "class"
880 fc <- getFC
880 fc <- getFC
882− put ist { parserWarnings =
883− (fc, Msg "The 'class' keyword is deprecated. Use 'interface' instead.")
881+ parserWarning fc Nothing (Msg "The 'class' keyword is deprecated. Use 'interface' instead.")
884− : parserWarnings ist }
886 carg :: IdrisParser (Name, FC, PTerm)
883 carg :: IdrisParser (Name, FC, PTerm)
887 carg = do lchar '('; (i, ifc) <- name; lchar ':'; ty <- expr syn; lchar ')'
884 carg = do lchar '('; (i, ifc) <- name; lchar ':'; ty <- expr syn; lchar ')'
@@ -928,11 +925,7 @@ instance_ kwopt syn
928 instanceKeyword = reservedHL "implementation"
925 instanceKeyword = reservedHL "implementation"
929 <|> do reservedHL "instance"
926 <|> do reservedHL "instance"
930 fc <- getFC
927 fc <- getFC
932− put ist { parserWarnings =
933− (fc, Msg "The 'instance' keyword is deprecated. Use 'implementation' (or omit it) instead.")
928+ parserWarning fc Nothing (Msg "The 'instance' keyword is deprecated. Use 'implementation' (or omit it) instead.")
934− : parserWarnings ist }
937-- | Parse a docstring
930-- | Parse a docstring
938docstring :: SyntaxInfo
931docstring :: SyntaxInfo