Idris-dev/test/ffi005/expected
David Raymond Christiansen e5bc47eec3 Distinguish postulate providers and type providers at use site
This is not backwards compatible, but as far as I know, there are no
users of postulate providers who are not me.

The old system allowed both the definition of the provider and the use
site to be involved in the determination of what is a postulate and what
is not. This is not good - users should always be in full control of
this.

The new implementation has two syntaxes:

%provide (x : t) with p

%provide postulate x with p

The first is the type provider syntax we know and love. The second
requires that the provider in fact return a type, which is then made
into the type of the resulting postulate.
2014-06-05 13:53:03 +02:00

2 lines
5 B
Plaintext