Hoogle Search

Within LTS Haskell 24.33 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. singleton :: a -> Vector 1 a

    vector-sized Data.Vector.Sized

    O(1) Vector with exactly one element.

  2. singleton :: Storable a => a -> Vector 1 a

    vector-sized Data.Vector.Storable.Sized

    O(1) Vector with exactly one element.

  3. singleton :: Unbox a => a -> Vector 1 a

    vector-sized Data.Vector.Unboxed.Sized

    O(1) Vector with exactly one element.

  4. singleton :: a -> NonEmpty a

    base-compat-batteries Data.List.NonEmpty.Compat

    Construct a NonEmpty list from a single element.

  5. singleton :: Word8 -> Bytes

    byteslice Data.Bytes

    Create a byte sequence with one byte.

  6. singleton :: Enum k => k -> a -> EnumMap k a

    enummapset Data.EnumMap.Lazy

    No documentation available.

  7. singleton :: Enum k => k -> a -> EnumMap k a

    enummapset Data.EnumMap.Strict

    No documentation available.

  8. singleton :: Enum k => k -> EnumSet k

    enummapset Data.EnumSet

    No documentation available.

  9. singleton :: a -> [a]

    ghc-internal GHC.Internal.Data.List

    Construct a list from a single element.

    Examples

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

  10. singleton :: a -> [a]

    ghc-internal GHC.Internal.Data.OldList

    Construct a list from a single element.

    Examples

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

Page 12 of many | Previous | Next