base-compat-0.11.2: A compatibility layer for base

Safe HaskellTrustworthy
LanguageHaskell2010

Data.List.Compat

Synopsis

Documentation

module Data.List

singleton :: a -> [a] Source #

Produce singleton list.

>>> singleton True
[True]

Since: 4.14.0.0