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.

  1. singleton :: MonoPointed seq => Element seq -> seq

    classy-prelude-yesod ClassyPrelude.Yesod

    Create a sequence from a single element.

    > singleton a :: String
    "a"
    > singleton a :: Vector Char
    fromList "a"
    

  2. singleton :: BoundedTrie -> Maybe [Text]

    gogol-dataflow Gogol.Dataflow

    A more efficient representation for metrics consisting of a single value.

  3. singleton :: BoundedTrie -> Maybe [Text]

    gogol-dataflow Gogol.Dataflow.Types

    A more efficient representation for metrics consisting of a single value.

  4. singleton :: Key k => TreeSetup -> k -> v -> Tree k v

    haskey-btree Data.BTree.Pure

    Construct a tree containg one element.

  5. singleton :: forall (u :: Type -> Type) a (v :: Type -> Type) b . (Vector u a, Vector v b) => (a, b) -> Vector u v (a, b)

    hybrid-vectors Data.Vector.Hybrid

    O(1) Vector with exactly one element

  6. singleton :: a -> [a]

    listsafe Data.List.Safe

    Construct a list from a single element.

    Examples

    >>> singleton True
    [True]
    
    >>> singleton [1, 2, 3]
    [[1,2,3]]
    
    >>> singleton 'c'
    "c"
    

  7. singleton :: a -> NonEmptySeq a

    non-empty-sequence Data.Sequence.NonEmpty

    Place a single item at the head of the NonEmptySeq.

  8. singleton :: Hashable k => k -> a -> SomeHashMapWith (SingletonProof 'Hashed k) k a

    refined-containers Data.HashMap.Refined

    Create a map with a single key-value pair, and return a proof that the key is in the resulting map.

  9. singleton :: Hashable k => k -> a -> SomeHashMapWith (SingletonProof 'Hashed k) k a

    refined-containers Data.HashMap.Strict.Refined

    Create a map with a single key-value pair, and return a proof that the key is in the resulting map.

  10. singleton :: Hashable a => a -> SomeHashSetWith (SingletonProof 'Hashed a) a

    refined-containers Data.HashSet.Refined

    Create a set with a single element.

Page 38 of many | Previous | Next