Skip to content
Snippets Groups Projects
Commit bc0c8f53 authored by sof's avatar sof
Browse files

[project @ 1998-02-17 20:13:33 by sof]

- arityErr: prefix error message with what kind
  of constructor that is being used wrongly.
parent 8e01cd72
No related merge requests found
......@@ -555,8 +555,8 @@ ctxt_to_use ctxt | opt_PprStyle_All = ctxt
takeAtMost n (x:xs) = x:takeAtMost (n-1) xs
arityErr kind name n m
= hsep [ ppr name, ptext SLIT("should have"),
n_arguments <> comma, text "but has been given", int m, char '.']
= hsep [ text kind, quotes (ppr name), ptext SLIT("should have"),
n_arguments <> comma, text "but has been given", int m]
where
n_arguments | n == 0 = ptext SLIT("no arguments")
| n == 1 = ptext SLIT("1 argument")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment