Skip to content

Commit 583aa5e

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 583aa5e

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=dd930426a471b2801620608566d244530c69172286eb66f6b34bb9b5da2ee734"
39+
"sha512=c6cbb760f9b38b827cf2009bb625a3da297a3f4d28dd8ef831f498839ab1bb2733adb4b69eff610223a594d460c3f72651ec8b1928d50daabe39ba4e377d0d4e"
40+
]
41+
}
42+
x-commit-hash: "3ab28b620e2eff04b04c3edd78fe2bf9e2b03646"

0 commit comments

Comments
 (0)