Skip to content

Commit

Permalink
Ansi_color.to_dyn
Browse files Browse the repository at this point in the history
Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Mar 27, 2021
1 parent c68382a commit 3e9c69d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions otherlibs/stdune-unstable/ansi_color.ml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Style = struct
type t = string

let to_dyn s = Dyn.Encoder.string s

let fg_black = "30"

let fg_red = "31"
Expand Down
2 changes: 2 additions & 0 deletions otherlibs/stdune-unstable/ansi_color.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Style : sig
type t

val to_dyn : t -> Dyn.t

val fg_default : t

val fg_black : t
Expand Down

0 comments on commit 3e9c69d

Please sign in to comment.