Skip to content

Commit e0efada

Browse files
committed
API: only one conversion type indexed by a context object
1 parent 10d43dc commit e0efada

29 files changed

+2664
-1898
lines changed

CHANGES.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
## v1.11.0 UNRELEASED
22

3+
- Stdlib:
4+
- triple, quadruple and quintuple data types
5+
- char builtin
6+
7+
- API:
8+
- `ContextualConversion` module is gone.
9+
- `('a, #ctx as 'c) Conversion.t` is the only datatype describing the
10+
conversion for type `'a` under a context `'c` which is a subclass of
11+
the raw context `#ctx`.
12+
- `('i, 'k, #ctx as 'c) Conversion.context` is a datatype describing
13+
the conversion for context `'i` indexed in the host application with keys
14+
`'k`. A context items conversion can depend on a context as well.
15+
- `BuiltInData.nominal` for nominal constants.
16+
- `PPX` sub module gathering private access points for the `elpi_ppx` deriver.
17+
- Conversions for data types such as `diagnostic`, `bool`, `*_stream`
18+
moved from `Elpi.Builtin` to `Elpi.API.BuiltInData`.
19+
320
- Trace:
421
- json output, with messages representing the tree structure of the proof
522
- categorize spy points into `user` and `dev`
623
- improve trace_ppx, revise all trace points
724
- port to ppxlib
25+
- commodity extension `[%elpi.template name args]` and
26+
`let[@elpi.template] f = fun args -> code` attribute to perform
27+
compile time inlining (can be used to circumvent the value restriction)
828

929
- Build system:
1030
- cache ppx output so that it builds without ppx_deriving and trace_ppx

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ DUNE_OPTS=
2929
build:
3030
dune build $(DUNE_OPTS) @all ; RC=$$?; \
3131
( cp -r _build/default/src/.ppcache src/ 2>/dev/null || true ); \
32-
( echo "FLG -ppx './merlinppx.exe --as-ppx --trace_ppx-on'" >> src/.merlin );\
32+
( echo "FLG -ppx './merlinppx.exe --as-ppx --cookie '\''elpi_trace=\"true\"'\'''" >> src/.merlin );\
3333
exit $$RC
3434

3535
install:

0 commit comments

Comments
 (0)