Description
Easily and clearly create lists with only one element in them.
Description
Warning: This package is not maintained anymore. As of base-4.15.0.0
, both @Data.List.singleton@ and @Data.List.NonEmpty.singleton@ are available.
The list-singleton
package allows you to easily and clearly create lists with only one element in them, which are typically called "singleton lists" or simply "singletons". (Not to be confused with the singletons
package!)
With any luck this library will be included in future versions of the base
package. See this mailing list thread for an extended discussion: https://mail.haskell.org/pipermail/libraries/2019-August/029801.html.