Repository navigation
Releases
Releases · hyphatech/litany
1.2.2
litany 1.2.2 is published as hypha-litany, its first release on open-opam, and its releases no longer go to Hypha's opam repository.
Upgrading
- The package
litany→hypha-litany. The command is stilllitany, and nothing it does changes. - Install it from open-opam:
opam repo add open-opam https://github.com/open-opam/opam-repository.git, thenopam install hypha-litany.
1.2.1
1.2.0
A release that makes --fix safer, makes litany refuse rather than crash, holds the newer rules to what their docs say, and prints its real version.
Upgrading
- A fix that writes
&&,Option,ResultorFilenameis applied by plain--fixonly where that name is the standard library's; elsewhere it needs--unsafe. wildcard-over-owned-variant,open-of-ordinary-module,untyped-ignoreanduntyped-wildcard-bindingarenursery: naming one still runs it, and--select restrictionno longer does.litany check --root DIRenters DIR, so paths print relative to it.
New
--unsafewithout--fix, and--list-unitswith--fix, warn that they do nothing.- The documentation is a site, https://hyphatech.github.io/litany/.
Fixed
--fix
- It keeps a file's permission bits, whatever the umask.
- It parses an
.mlias an interface, where amoduleorclassdeclaration was refused, and prints none of the compiler's warnings. - A shadowed name no longer changes what a program computes, and a constructor chosen by its expected type, or a bracket in a character literal or comment, no longer breaks the build.
trailing-whitespaceno longer fires inside a string, where its fix changed the string.
Rules
wildcard-over-owned-variantno longer fires on another library's variant through a module alias, or on an extensible variant.open-of-ordinary-modulereads constructors in patterns, fields and submodule members, and tells a name written out in full from one taken through the open.untyped-ignoreanduntyped-wildcard-bindingfire on(e : _)and(e : 'a);untyped-ignoreaccepts a coercion.restricted-export-namereads every variable a root pattern binds.suspicious-str-formatterpromises no fix, as it never emitted one.
Running
litany --versionprints the release's version, where every release printeddev.--rootworks from any directory, and an(only ...)or(except ...)scope no longer fails the rule under an absolute root.- A refused pipe or fork continues without workers, and a dune that can't start is a refusal, where both were internal errors.
litany units --savekeeps one entry for a source with two artifact copies, and--dumpprintsintf-source.- An executable or library named only by
public_nameno longer withholds the project rules. - With
GITHUB_ACTIONSset,--explain-withheldkeeps the text page.
1.1.1
A fix for web parts on Hypha Stack: a Melange library run through a preprocessor, and screens written in mlx, are now linted.
Fixed
- A Melange library preprocessed by
melange.ppxorppx_solidtypeis linted: dune compiles its modules from the preprocessed copies in.melange_src/, which are now named before the plain ones. - An implementation written in mlx's dialect is paired with its
.mlx, and read from the OCaml dune turns it into.
1.1.0
Hypha's first release of its fork of invariant-hq/litany: installable from Hypha's opam repository, reading Melange and opam switches, with new restriction rules.
Upgrading
- Install from Hypha's opam repository:
opam repo add hypha https://github.com/hyphatech/opam-repository.git, thenopam install litany.
New
wildcard-over-owned-variant: a_arm in a match over a variant the code owns;(owned <library> ...)names the libraries besides the unit's own.untyped-ignoreanduntyped-wildcard-binding: a value discarded byignoreorlet _without naming its type.open-of-ordinary-module: a file-wideopenthrough which a unit takes anything but binding operators; rules may now be called at every structure-levelopen,Rule.open_.restricted-dependencyforbids take(only <glob> ...)and(except <glob> ...)after their remedy, inper-path's glob grammar, re-exported asRule.Glob.
Fixed
- A Melange library is linted: its units were skipped as stale, since dune compiles copies of them in
.melange_src/. - A library installed in an opam switch,
UnixandEioamong them, resolves: only dune's package store was searched. - dune is started with no signal blocked, where a blocked mask made it print that it failed to handle one.
- The test suite runs on released dune 3.23, on Linux, with no colour, wherever it runs.