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 :: a -> IORef (Weak b) -> (b -> IO ()) -> IO (WeakBag a, WeakBagTicket)reflex Data.WeakBag Create a WeakBag with one item; equivalent to creating the WeakBag with empty, then using insert.
singleton :: ListLike full item => item -> fullListLike Data.ListLike Creates a single-element list out of an element
singleton :: ListLike full item => item -> fullListLike Data.ListLike.Base Creates a single-element list out of an element
-
basic-prelude BasicPrelude Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
singleton :: Location -> a -> BorderMap abrick Brick.BorderMap A BorderMap that tracks only the given the point (and initially maps it to the given value).
singleton :: Int -> Run a -> IMap abrick Data.IMap No documentation available.
singleton :: Char -> ShortTextghc-lib-parser GHC.Data.ShortText Create a singleton
singleton :: Key -> a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Internal A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: Key -> a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Lazy A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1
singleton :: Key -> a -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Strict A map of one element.
singleton 1 'a' == fromList [(1, 'a')] size (singleton 1 'a') == 1