Easily and clearly create lists with only one element in them.

Version on this page:
LTS Haskell 15.7:
Stackage Nightly 2020-04-05:
Latest on Hackage:

See all snapshots list-singleton appears in

ISC licensed
Maintained by Taylor Fausak

Module documentation for

This version can be pinned in stack with:[email protected]:985c07bd5e44f3e21ff460b474b5fcc3c33c7082eaedf67905378ec707e7c4d0,1100


Version badge Build badge

The list-singleton is a Haskell package allows you to easily and clearly create lists with only one element in them, which are typically called “singleton lists” or simply “singletons”.

For more details, read the announcement post on my blog or the documentation on Hackage.


Change log

  • #1: Added rationale to documentation. Thanks @chris-martin!

  • #2: Fixed formatting of other package names in package description. Thanks @chris-martin and @chshersh!

  • Initially released.
Depends on 1 package(full list with versions):