Hoogle Search
Within LTS Haskell 24.2 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singleton :: Hashable k => k -> v -> HashMap k vunordered-containers Data.HashMap.Internal.Strict Construct a map with a single element.
singleton :: Hashable k => k -> v -> HashMap k vunordered-containers Data.HashMap.Lazy Construct a map with a single element.
singleton :: Hashable k => k -> v -> HashMap k vunordered-containers Data.HashMap.Strict Construct a map with a single element.
singleton :: Hashable a => a -> HashSet aunordered-containers Data.HashSet Construct a set with a single element.
>>> HashSet.singleton 1 fromList [1]
singleton :: Hashable a => a -> HashSet aunordered-containers Data.HashSet.Internal Construct a set with a single element.
>>> HashSet.singleton 1 fromList [1]
-
binary Data.Binary.Builder O(1). A Builder taking a single byte, satisfying
toLazyByteString (singleton b) = singleton b
-
lens Control.Lens.Internal.Deque O(1). Generate a singleton Deque
>>> singleton 1 BD 1 [1] 0 []
-
hedgehog Hedgehog.Internal.Range Construct a range which represents a constant single value.
>>> bounds x $ singleton 5 (5,5)
>>> origin $ singleton 5 5
-
hedgehog Hedgehog.Range Construct a range which represents a constant single value.
>>> bounds x $ singleton 5 (5,5)
>>> origin $ singleton 5 5
singleton :: ByteArray a => Word8 -> amemory Data.ByteArray Create a byte array from a single byte