Data.List.Compat
module Data.List
singleton :: a -> [a] Source #
Produce singleton list.
>>> singleton True [True]
>>>
singleton True
Since: 4.14.0.0