this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

[new release] ansifmt (0.3.0)

CHANGES:

## Features

- Add `Custom` token type variant which takes a styling, for tokens without particular semantics.
- Add `Formatting.Element` that supersedes `Formatting.Tree`.
- Add `Formatting.Interfaces.TO_ELEMENT` interface which establishes the contract to convert to a formatting element that is used by formatting and printing utilitary functions such as `format` and `IO.print_formatted`.
- Expose the `Int8` module that is used by `Color`.
- Add `Token.number` to easily construct a number literal token.

## Removed

- Remove `Formatting.Tree`, `Formatting.TOKENIZABLE` and its associated functions. Use `Formatting.Element` instead.
- Remove the `Prelude` module. It has merged with the core `Ansifmt` module.
- Remove `print_formatted` alias from the prelude. The function can still be found as `IO.print_formatted`.
- Remove `make_styling` alias from the prelude. The function can still be found as `Styling.create`.

## Internal

- Renamed `Utils` to `Internal`.
- `Formatting` is now a directory instead of a file containing all its submodules.
- Added `List.intersperse` and `List.singleton` (used in `Formatting.Element`).
- Added `Bool.tautology` (used in `Formatting.Element`).

Qexat 93a14269 4022a684

+39
+39
packages/ansifmt/ansifmt.0.3.0/opam
··· 1 + opam-version: "2.0" 2 + synopsis: "A simple, lightweight library for ANSI formatting" 3 + description: 4 + "A simple, lightweight library for ANSI formatting with powerful features such as a element-based system for pretty-printing code in the terminal." 5 + maintainer: ["Qexat <contact@qexat.com>"] 6 + authors: ["Qexat <contact@qexat.com>"] 7 + license: "MIT" 8 + tags: ["ansi" "formatting" "pretty-printing" "terminal"] 9 + homepage: "https://github.com/qexat/ansifmt" 10 + bug-reports: "https://github.com/qexat/ansifmt/issues" 11 + depends: [ 12 + "dune" {>= "3.17"} 13 + "ocaml" {>= "4.08"} 14 + "odoc" {with-doc} 15 + ] 16 + build: [ 17 + ["dune" "subst"] {dev} 18 + [ 19 + "dune" 20 + "build" 21 + "-p" 22 + name 23 + "-j" 24 + jobs 25 + "@install" 26 + "@runtest" {with-test} 27 + "@doc" {with-doc} 28 + ] 29 + ] 30 + dev-repo: "git+https://github.com/qexat/ansifmt.git" 31 + url { 32 + src: 33 + "https://github.com/qexat/ansifmt/releases/download/0.3.0/ansifmt-0.3.0.tbz" 34 + checksum: [ 35 + "sha256=2aafe8c72c1112b95b4b13be7f070d8fa0618a9414a85c3fb395a0ea3b5ace29" 36 + "sha512=394320608cd6ffffb68c1b20d593d42929e155678be2adc3f43e86900adcadab50758ff53d91aa770259c302784064782c89b8d623016e370421a702755350ee" 37 + ] 38 + } 39 + x-commit-hash: "c5cdc2d376af59bc3e42ebfb3874fbca5c3a36b3"