Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singleton :: Key -> a -> CharMap aregex-tdfa Data.IntMap.CharMap2 No documentation available.
singleton :: Enum key => key -> a -> EnumMap key aregex-tdfa Data.IntMap.EnumMap2 No documentation available.
singleton :: Enum e => e -> EnumSet eregex-tdfa Data.IntSet.EnumSet2 No documentation available.
singleton :: Char -> ShortTexttext-short Data.Text.Short Construct ShortText from single codepoint.
singleton c == pack [c]
length (singleton c) == 1
>>> singleton 'A' "A"
>>> map singleton ['\55295','\55296','\57343','\57344'] -- U+D7FF U+D800 U+DFFF U+E000 ["\55295","\65533","\65533","\57344"]
Note: This function is total because it replaces the (invalid) code-points U+D800 through U+DFFF with the replacement character U+FFFD.singleton :: (Show a, NFData a) => Keys a -> a -> MetadatasJuicyPixels Codec.Picture.Metadata Create metadatas with a single element.
singleton :: forall (f :: Type -> Type) a . Empty f => a -> T f anon-empty Data.NonEmpty No documentation available.
singleton :: Singleton f => a -> f anon-empty Data.NonEmpty.Class No documentation available.
-
non-empty Data.NonEmpty.Map No documentation available.
-
non-empty Data.NonEmpty.Set No documentation available.
singleton :: MonoPointed seq => Element seq -> seqmono-traversable Data.Sequences Create a sequence from a single element.
> singleton a :: String "a" > singleton a :: Vector Char fromList "a"