MIT licensed and maintained by Nikita Volkov
This version can be pinned in stack with:strict-list-1.0.0.0@sha256:6d604d6c3c32bcad53436f7d8ffd72b3bc2a8db26282e587b7642ab040b3bc2d,1795

Module documentation for 1.0.0.0

Used by 2 packages in nightly-2026-04-05(full list with versions):

strict-list

Strict linked lists for Haskell, with stack-safe operations and reversed-order helpers for efficient intermediate work.

Example

{-# LANGUAGE OverloadedLists #-}

import StrictList

numbers :: StrictList Int
numbers = [1, 2, 3]

Changes

v1.0.0.0

Breaking changes

  • The strict list type was renamed from List to StrictList throughout the API to avoid confusion with the List type alias from base.
  • Ord for StrictList now matches the standard lazy list ordering, so empty lists compare smaller than non-empty lists and lexicographic comparison follows the usual [] semantics.

Other changes

  • Added Arbitrary support in the test suite.