-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from melange-community/ppx
Port ppx from andreypopp/ppx_deriving
- Loading branch information
Showing
27 changed files
with
4,058 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: main | ||
|
||
on: | ||
pull_request: | ||
push: | ||
schedule: | ||
- cron: 0 1 * * MON | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
ocaml-compiler: | ||
- "4.14" | ||
- "5.1" | ||
- "5.2" | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: checkout tree | ||
uses: actions/checkout@v4 | ||
|
||
- name: set-up OCaml ${{ matrix.ocaml-compiler }} | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: ${{ matrix.ocaml-compiler }} | ||
opam-repositories: | | ||
default: https://github.com/ocaml/opam-repository.git | ||
- run: opam install . --deps-only --with-test | ||
|
||
- run: opam exec -- dune build | ||
|
||
- run: opam exec -- dune runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
break-infix=fit-or-vertical | ||
margin=74 | ||
parens-tuple=multi-line-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,11 @@ | |
|
||
(generate_opam_files true) | ||
|
||
(authors "glennsl") | ||
(authors "glennsl" "Andrey Popp") | ||
|
||
(maintainers | ||
"Antonio Nuno Monteiro <[email protected]>" | ||
"Javier Ch\195\161varri <[email protected]>") | ||
"Javier Chávarri <[email protected]>") | ||
|
||
(license "LGPL-3.0-only" "MPL-2.0") | ||
|
||
|
@@ -23,9 +23,10 @@ | |
|
||
(package | ||
(name melange-json) | ||
(synopsis "Compositional JSON encode/decode library for Melange") | ||
(synopsis | ||
"Compositional JSON encode/decode library and PPX for Melange, with native compatibility") | ||
(description | ||
"Provides encoders and decoders to convert JSON values into typed values. With the possibility to create custom encoders and decoders.") | ||
"Provides encoders and decoders to convert JSON values into typed values. With the possibility to create custom encoders and decoders and automate them with a PPX.") | ||
(depends | ||
ocaml | ||
(melange | ||
|
@@ -35,5 +36,8 @@ | |
(and | ||
(>= "3.10.0") | ||
:with-test)) | ||
ppxlib | ||
yojson ; only used for the native version | ||
(opam-check-npm-deps :with-test) ; todo: use with-dev-setup once opam 2.2 is out | ||
(ocaml-lsp-server :with-test))) | ||
(ocaml-lsp-server :with-test) | ||
(ocamlformat :with-test))) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.