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

LTS Haskell 19.33:
Stackage Nightly 2022-09-01:
Latest on Hackage:

See all snapshots list-singleton appears in

MIT licensed
Maintained by Taylor Fausak
This version can be pinned in stack with:list-singleton-,1872

Module documentation for

Depends on 1 package(full list with versions):


CI Hackage Stackage

:warning: This package is not maintained anymore. As of base-, both Data.List.singleton and Data.List.NonEmpty.singleton are available.

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

list-singleton follows the Package Versioning Policy. You can find release notes on GitHub.