Commit Graph

6 Commits

Author SHA1 Message Date
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
Niklas Larsson
8cc2312715 Don't let tests depend on colouring. 2015-04-01 20:50:06 +02:00
Andreas Reuleaux
d0310fda39 adjust test unique002 with --consolewidth for use with -f curses 2015-03-19 18:36:28 +00:00
Edwin Brady
b591600d12 Don't propagate unique names to 'where'
Doing so breaks typechecking, leading to nothing working any more...
passing them to lifted 'where' definitions counts as a use in the
typechecker, so *any* where clause will fail to typecheck.

This is an effect of how 'where' clauses are elaborated, and is probably
not the best behaviour (though it is better than the default which rules
our where clauses completely) so we should revisit it later if
uniqueness typing turns out to work effectively.
2014-08-26 09:25:10 +01:00
Edwin Brady
c55895d705 Fix universe errors, update tests 2014-08-22 20:31:11 +01:00
Edwin Brady
120b1c3286 Add unique002 test 2014-08-22 01:36:22 +01:00