Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. fromList :: HasCallStack => [a] -> NonEmpty a

    base-compat Data.List.NonEmpty.Compat

    Converts a normal list to a NonEmpty stream. Raises an error if given an empty list.

  2. prependList :: [a] -> NonEmpty a -> NonEmpty a

    base-compat Data.List.NonEmpty.Compat

    Attach a list at the beginning of a NonEmpty.

    >>> prependList [] (1 :| [2,3])
    1 :| [2,3]
    
    >>> prependList [negate 1, 0] (1 :| [2, 3])
    -1 :| [0,1,2,3]
    

  3. toList :: NonEmpty a -> [a]

    base-compat Data.List.NonEmpty.Compat

    Convert a stream to a normal list efficiently.

  4. shorterList :: [a] -> [a] -> [a]

    utility-ht Data.List.Match

    Returns the shorter one of two lists. It works also for infinite lists as much as possible. E.g.

    >>> shorterList (shorterList (repeat 'a') (repeat 'b')) "abc"
    "abc"
    
    The trick is, that the skeleton of the resulting list is constructed using zipWith without touching the elements. The contents is then computed (only) if requested.

  5. embedDirListing :: FilePath -> Q Exp

    file-embed Data.FileEmbed

    Embed a directory listing recursively in your source code.

    myFiles :: [FilePath]
    myFiles = $(embedDirListing "dirName")
    

  6. parseJSONList :: FromJSON a => Value -> Parser [a]

    yaml Data.Yaml

    No documentation available.

  7. toEncodingList :: ToJSON a => [a] -> Encoding

    yaml Data.Yaml

    No documentation available.

  8. toJSONList :: ToJSON a => [a] -> Value

    yaml Data.Yaml

    No documentation available.

  9. parseJSONList :: FromJSON a => Value -> Parser [a]

    yaml Data.Yaml.TH

    No documentation available.

  10. genListLength :: Gen Int

    genvalidity Data.GenValidity.Utils

    No documentation available.

Page 56 of many | Previous | Next