list-predicate: Predicates on lists

[ bsd3, library, list ] [ Propose Tags ]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],
Change log
Dependencies base (>=4.7 && <5) [details]
License BSD-3-Clause
Copyright 2020 Preetham Gujjula
Author Preetham Gujjula
Category List
Home page
Bug tracker
Source repo head: git clone
Uploaded by pgujjula at 2020-05-02T20:28:27Z
Distributions LTSHaskell:, NixOS:, Stackage:
Downloads 792 total (12 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for list-predicate-

[back to package description]


list-predicate is a library for predicates (True/False queries) on lists.


The following features have been implemented and extensively tested:

  • allEqual, allEqualBy: Whether all the elements of a list are equal
  • sorted, sortedBy: Whether the elements are in sorted order.
  • allUnique, allUniqueBy: Whether the elements are all unique.
  • ascSequential, descSequential: Whether a list of Enums is ascending or descending sequentially (one-by-one)
  • palindrome: Whether the list is a palindrome

Full documentation can be built with Haddock (see instructions below). Once this package is added to Hackage, documentation will be available there as well.


Build and install with Stack:

git clone
cd list-predicate
stack build list-predicate            # build the project
stack haddock list-predicate --open   # build and view documentation
stack test list-predicate             # run the test suite


If you want to report a bug, request a feature, or suggest improvements, feel free to email me at preetham (dot) gujjula (at) protonmail (dot) com!

-- Preetham