Hoogle Search

Within LTS Haskell 24.12 (ghc-9.10.3)

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

  1. toList :: DList a -> [a]

    dlist Data.DList

    toList xs is the list represented by xs. toList obeys the laws:

    toList . fromList = id
    fromList . toList = id
    
    Evaluating toList xs may “collapse” the chain of function composition underlying many DList functions (append in particular) used to construct xs. This may affect any efficiency you achieved due to laziness in the construction.

  2. fromList :: [a] -> DNonEmpty a

    dlist Data.DList.DNonEmpty

    fromList xs is a DNonEmpty representing the list xs. If xs is empty, an error is raised. fromList obeys the law:

    fromList xs = fromNonEmpty (fromList xs)
    

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

    dlist Data.DList.DNonEmpty

    toList xs is the non-empty list represented by xs. toList obeys the law:

    toList xs = toList (toNonEmpty xs)
    

  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. genListLength :: Gen Int

    genvalidity Data.GenValidity.Utils

    No documentation available.

  7. genListOf :: Gen a -> Gen [a]

    genvalidity Data.GenValidity.Utils

    A version of listOf that takes size into account more accurately. This generator distributes the size that is is given among the values in the list that it generates.

  8. genListOf1 :: Gen a -> Gen [a]

    genvalidity Data.GenValidity.Utils

    A version of genNonEmptyOf that returns a list instead of a NonEmpty.

  9. shrinkList :: (a -> [a]) -> [a] -> [[a]]

    genvalidity Data.GenValidity.Utils

    Shrink a list of values given a shrinking function for individual values.

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

    yaml Data.Yaml

    No documentation available.

Page 56 of many | Previous | Next