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.
-
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. fromList :: [a] -> DNonEmpty adlist 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)
-
dlist Data.DList.DNonEmpty toList xs is the non-empty list represented by xs. toList obeys the law:
toList xs = toList (toNonEmpty xs)
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.embedDirListing :: FilePath -> Q Expfile-embed Data.FileEmbed Embed a directory listing recursively in your source code.
myFiles :: [FilePath] myFiles = $(embedDirListing "dirName")
-
genvalidity Data.GenValidity.Utils No documentation available.
-
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.
genListOf1 :: Gen a -> Gen [a]genvalidity Data.GenValidity.Utils A version of genNonEmptyOf that returns a list instead of a NonEmpty.
shrinkList :: (a -> [a]) -> [a] -> [[a]]genvalidity Data.GenValidity.Utils Shrink a list of values given a shrinking function for individual values.
parseJSONList :: FromJSON a => Value -> Parser [a]yaml Data.Yaml No documentation available.