Skip to content

Commit 4827b43

Browse files
committed
[new release] ansifmt (2.0.0)
CHANGES: ## Changes - `Fmt` has been rewritten from scratch to use my own library called `rich-string`. As such, a lot of tests have been dropped as they already exist upstream. The interface is mostly the same, besides the type itself and a few parameters that got renamed. - `Fmt.print`'s `ending` parameter now takes a `Fmt.t option` instead of a `string option`. ## Features - `Ansi` and `Color` now implement their own dedicated equality. No need to use the built-in polymorphic equality anymore. ## Removed - `Fmt`'s serialization feature is now dependent on `rich-string`. Since the latter does not provide it yet, serialization was dropped for now. - `Fmt.show` was also removed. On top of not being provided by `rich-string` and being the identity function, it was not all that useful.
1 parent 0939e07 commit 4827b43

File tree

1 file changed

+42
-0
lines changed
  • packages/ansifmt/ansifmt.2.0.0

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
opam-version: "2.0"
2+
synopsis: "A simple, lightweight library for ANSI styling"
3+
description: "A simple, lightweight library for ANSI styling."
4+
maintainer: ["lexa <[email protected]>"]
5+
authors: ["lexa <[email protected]>"]
6+
license: "MIT"
7+
tags: ["ansi" "formatting" "styling" "pretty-printing" "terminal"]
8+
homepage: "https://github.com/qexat/ansifmt"
9+
bug-reports: "https://github.com/qexat/ansifmt/issues"
10+
depends: [
11+
"dune" {>= "3.17"}
12+
"ocaml" {>= "5.1"}
13+
"ppx_inline_test" {with-test}
14+
"ppx_expect" {with-test}
15+
"re" {= "1.12.0"}
16+
"rich-string" {>= "1.0.0"}
17+
"odoc" {with-doc}
18+
]
19+
build: [
20+
["dune" "subst"] {dev}
21+
[
22+
"dune"
23+
"build"
24+
"-p"
25+
name
26+
"-j"
27+
jobs
28+
"@install"
29+
"@runtest" {with-test}
30+
"@doc" {with-doc}
31+
]
32+
]
33+
dev-repo: "git+https://github.com/qexat/ansifmt.git"
34+
url {
35+
src:
36+
"https://github.com/qexat/ansifmt/releases/download/2.0.0/ansifmt-2.0.0.tbz"
37+
checksum: [
38+
"sha256=7bd5aff4eb547ca9bbc50cda6fa71af016673fbed0b0913b6c7bf5fce4688459"
39+
"sha512=1042f4d0ae6d02ab90c1034d839f7b6d30980983b6192cb6c4c18dce030312693a82edbc37e5fa70acf4d1713f0875c3e7e2b5ff12fcac5c64737465c5e72def"
40+
]
41+
}
42+
x-commit-hash: "83592dde568164b428ec1e0f89e08e75b2063613"

0 commit comments

Comments
 (0)