Idris2/libs/contrib
Edwin Brady ad632d825d Remove linearity subtyping
It's disappointing to have to do this, but I think necessary because
various issue reports have shown it to be unsound (at least as far as
inference goes) and, at the very least, confusing. This patch brings us
back to the basic rules of QTT.

On the one hand, this makes the 1 multiplicity less useful, because it
means we can't flag arguments as being used exactly once which would be
useful for optimisation purposes as well as precision in the type. On
the other hand, it removes some complexity (and a hack) from
unification, and has the advantage of being correct! Also, I still
consider the 1 multiplicity an experiment.

We can still do interesting things like protocol state tracking, which
is my primary motivation at least.

Ideally, if the 1 multiplicity is going to be more generall useful,
we'll need some kind of way of doing multiplicity polymorphism in the
future. I don't think subtyping is the way (I've pretty much always come
to regret adding some form of subtyping).

Fixes #73 (and maybe some others).
2020-12-27 19:58:35 +00:00
..
Control Remove linearity subtyping 2020-12-27 19:58:35 +00:00
Data Remove linearity subtyping 2020-12-27 19:58:35 +00:00
Debug Back to HasIO, remove MonadIO 2020-06-21 19:21:22 +01:00
Decidable [ fix #657 ] RigCount for interface parameters (#808) 2020-12-11 11:58:26 +00:00
Language Fix import loading 2020-05-27 15:49:03 +01:00
Syntax [ fix #735 ] Make sure type constructors are fully applied 2020-10-16 14:44:11 +01:00
System Implement Futures as a Parallelism Primitive (#753) 2020-12-04 10:58:26 +00:00
Test Make Idris2 test harness available for the many and not the few. (#719) 2020-10-19 09:26:23 +01:00
Text [ fix #657 ] RigCount for interface parameters (#808) 2020-12-11 11:58:26 +00:00
contrib.ipkg Implement Futures as a Parallelism Primitive (#753) 2020-12-04 10:58:26 +00:00
Makefile Refactor makefiles 2020-05-19 18:50:47 +06:00