Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
vector-sized Data.Vector.Sized O(1) Vector with exactly one element.
singleton :: Storable a => a -> Vector 1 avector-sized Data.Vector.Storable.Sized O(1) Vector with exactly one element.
singleton :: Unbox a => a -> Vector 1 avector-sized Data.Vector.Unboxed.Sized O(1) Vector with exactly one element.
-
base-compat-batteries Data.List.NonEmpty.Compat Construct a NonEmpty list from a single element.
-
byteslice Data.Bytes Create a byte sequence with one byte.
singleton :: Enum k => k -> a -> EnumMap k aenummapset Data.EnumMap.Lazy No documentation available.
singleton :: Enum k => k -> a -> EnumMap k aenummapset Data.EnumMap.Strict No documentation available.
singleton :: Enum k => k -> EnumSet kenummapset Data.EnumSet No documentation available.
-
ghc-internal GHC.Internal.Data.List Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
-
ghc-internal GHC.Internal.Data.OldList Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"