Optimised list functions for doing index-related things

Version on this page:
LTS Haskell 22.30:
Stackage Nightly 2024-07-24:
Latest on Hackage:

See all snapshots ilist appears in

BSD-3-Clause licensed by Artyom
Maintained by [email protected]
This version can be pinned in stack with:ilist-,2048

Module documentation for

Depends on 1 package(full list with versions):

Optimised list functions for doing index-related things. They're faster than common idioms in all cases, they avoid space leaks, and sometimes they fuse better as well.


  • Added ireplicateM and ireplicateM_.

  • ifind now returns the index alongside with the value (same as in lens).

  • izipWithM and izipWithM_ have been generalised from Monad to Applicative (which mimics what was done in base-4.9).

First release.