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
/result

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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