Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
singleton :: Sequence sq => cat a b -> sq cat a bfreer-par-monad Control.Monad.Freer.Par.Sequence No documentation available.
singleton :: Text -> v -> OrderedMap vgraphql Language.GraphQL.Execute.OrderedMap Constructs a map with a single element.
singleton :: HeapItem pol item => item -> Heap pol itemheap Data.Heap O(1). Create a singleton HeapT.
-
ihaskell IHaskellPrelude Construct a list from a single element.
Examples
>>> singleton True [True]
>>> singleton [1, 2, 3] [[1,2,3]]
>>> singleton 'c' "c"
-
intern Data.Interned.IntSet O(1). A set of one element.
singleton :: (Representable k, Representable a) => k % 1 -> a % 1 -> Pool % 1 -> Heap k alinear-base Foreign.Heap No documentation available.
-
monad-par-extras Control.Monad.Par.AList O(1) a singleton AList
singleton :: (Ord k, MonoidNull v) => k -> v -> MonoidMap k vmonoidmap-internal Data.MonoidMap.Internal Constructs a MonoidMap from a single key-value pair. Satisfies the following property:
get k (singleton k v) == v
Nullifying the value for key k produces an empty map:nullify k (singleton k v) == empty
singleton :: Ord k => k -> v -> Map k vmonoidmap-internal Data.MonoidMap.Internal.RecoveredMap No documentation available.
singleton :: Key -> IntMultiSetmultiset Data.IntMultiSet O(1). Create a singleton mutli set.