Module Dunolint_base

An extension of the Dunolint library for use with Base.

Dunolint_base.Dunolint is a module that extends the Dunolint module with additional modules and functionalities, aimed to improve the compatibility of Dunolint for programs using Base.

For example, it adds Comparable.S to all container keys modules so that they can be used with Base-style containers.

The library is designed to be used as a drop-in replacement for Dunolint. For this, it includes a single module named Dunolint which must be setup to shadow the regular Dunolint module.

You may do so by defining the following module alias in a place that's available to your scope:

  module Dunolint = Dunolint_base.Dunolint

Another way to achieve this is to open Dunolint_base via dune flags. When doing that, all the files in your library will use Dunolint_base.Dunolint consistently.

  (library
    (name my_library)
    (flags (:standard -open Dunolint_base))
    (libraries dunolint-lib-base))
module Dunolint : sig ... end