Browse Source

remove dep on fmt

master
Simon Cruanes 5 months ago
parent
commit
8a3c64ba89
4 changed files with 8 additions and 13 deletions
  1. +1
    -1
      dune-project
  2. +1
    -1
      lib/nottui/dune
  3. +5
    -10
      lib/nottui/nottui.ml
  4. +1
    -1
      nottui.opam

+ 1
- 1
dune-project View File

@@ -19,7 +19,7 @@
(name nottui)
(synopsis "UI toolkit for the terminal built on top of Notty")
(description "TODO")
(depends dune lwd notty fmt))
(depends dune lwd notty))

(package
(name nottui-lwt)


+ 1
- 1
lib/nottui/dune View File

@@ -1,3 +1,3 @@
(library (name nottui)
(public_name nottui)
(libraries lwd notty notty.unix fmt))
(libraries lwd notty notty.unix))

+ 5
- 10
lib/nottui/nottui.ml View File

@@ -322,16 +322,11 @@ struct
| Y (a, b) -> Format.fprintf ppf "Y (@[%a,@ %a@])" pp a pp b
| Z (a, b) -> Format.fprintf ppf "Z (@[%a,@ %a@])" pp a pp b

and pp_overlay ppf =
Fmt.(record [
field "o_n" (fun r -> r.o_n) pp;
field "o_h" (fun r -> r.o_h) (const string "_");
field "o_x" (fun r -> r.o_x) int;
field "o_y" (fun r -> r.o_y) int;
field "o_z" (fun r -> r.o_z) int;
field "o_origin" (fun r -> r.o_origin) Gravity.pp;
field "o_direction" (fun r -> r.o_direction) Gravity.pp;
]) ppf
and pp_overlay ppf r =
Format.fprintf ppf
"{@[o_n=%a;@ o_h=%s;@ o_h=%d;@ o_x=%d;@ o_y=%d;@ \
o_origin=%a;@ o_direction=%a@]}" pp r.o_n "_" r.o_x r.o_y r.o_z
Gravity.pp r.o_origin Gravity.pp r.o_direction

let iter f ui = match ui.desc with
| Atom _ -> ()


+ 1
- 1
nottui.opam View File

@@ -7,7 +7,7 @@ authors: ["Frédéric Bour"]
license: "MIT"
homepage: "https://github.com/let-def/lwd"
bug-reports: "https://github.com/let-def/lwd/issues"
depends: ["dune" "lwd" "notty" "fmt"]
depends: ["dune" "lwd" "notty"]
build: [
["dune" "subst"] {pinned}
[


Loading…
Cancel
Save