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.
fromList :: HasCallStack => [a] -> NonEmpty abase-compat Data.List.NonEmpty.Compat Converts a normal list to a NonEmpty stream. Raises an error if given an empty list.
prependList :: [a] -> NonEmpty a -> NonEmpty abase-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]
-
base-compat Data.List.NonEmpty.Compat Convert a stream to a normal list efficiently.
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")
parseJSONList :: FromJSON a => Value -> Parser [a]yaml Data.Yaml No documentation available.
toEncodingList :: ToJSON a => [a] -> Encodingyaml Data.Yaml No documentation available.
toJSONList :: ToJSON a => [a] -> Valueyaml Data.Yaml No documentation available.
parseJSONList :: FromJSON a => Value -> Parser [a]yaml Data.Yaml.TH No documentation available.
-
genvalidity Data.GenValidity.Utils No documentation available.