use ppx_unicode

This commit is contained in:
xenia 2024-04-25 03:00:59 -04:00
parent 6e2d67d8d5
commit 195b2d5296
7 changed files with 11 additions and 7 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/_build /_build
/result

View File

@ -18,4 +18,5 @@
(uri "https://git.lain.faith/haskal/xlog.git")) (uri "https://git.lain.faith/haskal/xlog.git"))
(depends ocaml dune (depends ocaml dune
(ptime (>= 1.1)) (ptime (>= 1.1))
(ppxlib (>= 0.32)))) (ppxlib (>= 0.32))
(ppx_unicode (>= 0.0.1))))

View File

@ -1,4 +1,5 @@
(library (library
(name xlog) (name xlog)
(public_name xlog) (public_name xlog)
(preprocess (pps ppx_unicode))
(libraries ptime ptime.clock.os str unix)) (libraries ptime ptime.clock.os str unix))

View File

@ -5,6 +5,7 @@
buildDunePackage, buildDunePackage,
ptime, ptime,
ppxlib, ppxlib,
ppx_unicode,
ocaml, ocaml,
dune_3, dune_3,
@ -29,10 +30,9 @@ in buildDunePackage rec {
minimalOCamlVersion = "5.1"; minimalOCamlVersion = "5.1";
dontStrip = true; dontStrip = true;
buildInputs = [ ppxlib ]; buildInputs = [ ppx_unicode ];
propagatedBuildInputs = [ ptime ]; propagatedBuildInputs = [ ptime ppxlib ];
nativeBuildInputs = [ ppxlib ppx_unicode ] ++ lib.optionals enableShell [
nativeBuildInputs = lib.optionals enableShell [
ocaml dune_3 odoc utop ocaml dune_3 odoc utop
]; ];
} }

View File

@ -3,6 +3,6 @@
(public_name xlog.ppx) (public_name xlog.ppx)
(synopsis "ppx rewriters for xlog") (synopsis "ppx rewriters for xlog")
(preprocess (preprocess
(pps ppxlib.metaquot)) (pps ppx_unicode ppxlib.metaquot))
(libraries ppxlib) (libraries ppxlib)
(kind ppx_rewriter)) (kind ppx_rewriter))

View File

@ -1,4 +1,4 @@
(test (test
(name test_xlog) (name test_xlog)
(preprocess (pps xlog.ppx)) (preprocess (pps ppx_unicode xlog.ppx))
(libraries xlog)) (libraries xlog))

View File

@ -13,6 +13,7 @@ depends: [
"dune" {>= "3.15"} "dune" {>= "3.15"}
"ptime" {>= "1.1"} "ptime" {>= "1.1"}
"ppxlib" {>= "0.32"} "ppxlib" {>= "0.32"}
"ppx_unicode" {>= "0.0.1"}
"odoc" {with-doc} "odoc" {with-doc}
] ]
build: [ build: [