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.

  1. singleton :: Key -> a -> CharMap a

    regex-tdfa Data.IntMap.CharMap2

    No documentation available.

  2. singleton :: Enum key => key -> a -> EnumMap key a

    regex-tdfa Data.IntMap.EnumMap2

    No documentation available.

  3. singleton :: Enum e => e -> EnumSet e

    regex-tdfa Data.IntSet.EnumSet2

    No documentation available.

  4. singleton :: Char -> ShortText

    text-short Data.Text.Short

    Construct ShortText from single codepoint.

    singleton c == pack [c]
    
    length (singleton c) == 1
    
    >>> singleton 'A'
    "A"
    
    >>> map singleton ['\55295','\55296','\57343','\57344'] -- U+D7FF U+D800 U+DFFF U+E000
    ["\55295","\65533","\65533","\57344"]
    
    Note: This function is total because it replaces the (invalid) code-points U+D800 through U+DFFF with the replacement character U+FFFD.

  5. singleton :: (Show a, NFData a) => Keys a -> a -> Metadatas

    JuicyPixels Codec.Picture.Metadata

    Create metadatas with a single element.

  6. singleton :: forall (f :: Type -> Type) a . Empty f => a -> T f a

    non-empty Data.NonEmpty

    No documentation available.

  7. singleton :: Singleton f => a -> f a

    non-empty Data.NonEmpty.Class

    No documentation available.

  8. singleton :: k -> a -> T k a

    non-empty Data.NonEmpty.Map

    No documentation available.

  9. singleton :: a -> T a

    non-empty Data.NonEmpty.Set

    No documentation available.

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

    mono-traversable Data.Sequences

    Create a sequence from a single element.

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

Page 6 of many | Previous | Next