Commit Graph

16 Commits

Author SHA1 Message Date
Niklas Larsson
b0e8b1258b make the tests respect the IDRIS env variable
Simplify the sandbox lookup and only run it once.

Only run the test script once for 'make test' instead of using the
makefile to iterate.
2016-01-22 06:57:04 +01:00
Edwin Brady
83f0af13fb Display expected type of RHS in error messages
Also added %error_reverse annotations on IO so that IO related messages
are more readable. This improves the error in #2672.
2015-10-17 14:30:36 +01:00
David Raymond Christiansen
752a2fcc77 Update tests for proof deprecation 2015-09-10 12:01:39 +02:00
David Raymond Christiansen
e1fce3fa2d Fix error location in test
The syntax improvement has caused a more accurate location in an error
in a test.
2015-06-18 23:08:00 +02:00
Edwin Brady
85a9d5063c Update error messages in tests 2015-05-31 21:22:36 +01:00
Edwin Brady
61870cb9b2 Change wording in unification errors
"Can't unify" and "Can't convert" are terrible error messages for
programmers, and particularly confusing to explain to beginners, because
programmers don't need to know that implementation detail.

Changed to "type mismatch" and updated docs accordingly.
2015-05-24 23:23:20 +01:00
Andreas Reuleaux
62419f47ad set console width / adjust tests by using --consolewidth to make them work with the curses flag 2015-03-19 11:50:39 +00:00
Edwin Brady
179c704362 Record provenance of types in 'fill' errors
This covers unification errors arising from variables and function
applications (which is a lot of them)
2015-03-16 18:27:19 +00:00
Edwin Brady
43127b17a7 Move Fin, Vect and So from prelude to base
They can be imported from the modules Data.Fin, Data.Vect, and Data.So
respectively.

The general thinking here is that not every program is going to need
these, and they are often used especially by newcomers in place of
something more appropriate. Also, all of them are useful for teaching,
which means it is instructive for tutorials to introduce them and have
people implement them themselves.
2014-12-31 20:18:02 +00:00
Ahmad Salim Al-Sibahi
17bab906e5 Fixed some accidentally wrong renamings.
Also, adapted some tests to the new names
2014-09-26 13:44:43 +02:00
Ahmad Salim Al-Sibahi
f0ed9e992f First renaming attempt 2014-09-26 07:34:28 +02:00
Edwin Brady
42c694ced4 More efficiency improvements
More efforts to avoid allocation where no updates happen.
2014-08-06 18:25:01 +01:00
Edwin Brady
9000ecf5aa Spot name clases in error messages
This just renames the internal name to something distinguishable. It's
still not completely clear (since it's a renaming from the user's name)
but given that the message means a user has picked the same name twice,
there's not too much else we can do easily... Certainly it's better than
"Can't unify f x with f x"...

Fixes #705
2014-07-16 13:17:37 +02:00
David Raymond Christiansen
45a0addf69 Update for new unification error messages 2014-03-20 20:00:18 +01:00
Edwin Brady
f98d1383e2 Fix parameter propagation 2014-02-18 11:05:56 +00:00
Edwin Brady
1d2fc7f8e0 Categorise tests 2014-01-30 17:24:08 +00:00