AvlTree

Balanced binary trees using the AVL algorithm.

Stackage Nightly 2025-11-21:4.3
Latest on Hackage:4.3

See all snapshots AvlTree appears in

BSD-3-Clause licensed by Adrian Hey
Maintained by Bodigrim
This version can be pinned in stack with:AvlTree-4.3@sha256:1c45243efdf782b8bef89e3d6a55f437beb273669a7a1f9fb55f2ce1c29e9cd5,2469

Module documentation for 4.3

  • Data
    • Data.Tree
      • Data.Tree.AVL
        • Data.Tree.AVL.Internals
          • Data.Tree.AVL.Internals.Types
Depends on 2 packages(full list with versions):

A comprehensive and efficient implementation of AVL trees. The raw AVL API has been designed with efficiency and generality in mind, not elagance or safety. It contains all the stuff you really don't want to write yourself if you can avoid it. This library may be useful for rolling your own Sets, Maps, Sequences, Queues (for example).

Changes

4.3

  • Remove previously deprecated functions.
  • Class Typeable1 is no longer a thing.

4.2

  • A lot of function renaming (old names still available but deprecated).
  • Gather all deprecations in 1 new module: Data.Tree.AVL.Deprecated.
  • Added findEmptyPath, nub, nubBy.

4.1

  • Added missing strictness to genVenn, genVennMaybe.

4.0

  • Changed to derived Read / Show instances (instead of via lists). Hence the instances are incompatible with earlier versions.
  • Added:
    • genDisjointUnion,testGenDisjointUnion,
    • genVenn,testGenVenn,
    • genVennMaybe,testGenVennMaybe,
    • genVennToList,
    • genVennAsList,
    • genVennMaybeToList,
    • genVennMaybeAsList.
  • Added UBT6 cpp macro to ghcdefs.h / h98defs.h.

3.2

  • No code changes, just reclaiming ownership and bumping version No.

3.1

  • Exposed BinPath primitives.
  • Removed AVL tree based sorts.
  • Removed Data.Map / Data.Set conversions. This eliminates the containers package dependency.
  • Removed link to Haskell wiki homepage as this will never be done.
  • Removed link to maintainer email.

3.0

  • Included MasterTable.txt in the distro.
  • Eq and Ord Instances now based on strict structural equality (derived).
  • Exposed height-related functions.

2.4

  • Initial Hackage/Cabal release. Version set to 2.4 to distinguish from the 2.3 (non-cabal) release on my home page.