Hoogle Search
Within LTS Haskell 24.35 (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-batteries 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-batteries 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-batteries Data.List.NonEmpty.Compat Convert a stream to a normal list efficiently.
filterByList :: [Bool] -> [a] -> [a]deriving-compat Data.Deriving.Internal filterByList takes a list of Bools and a list of some elements and filters out these elements for which the corresponding value in the list of Bools is False. This function does not check whether the lists have equal length.
filterByLists :: [Bool] -> [a] -> [a] -> [a]deriving-compat Data.Deriving.Internal filterByLists takes a list of Bools and two lists as input, and outputs a new list consisting of elements from the last two input lists. For each Bool in the list, if it is True, then it takes an element from the former list. If it is False, it takes an element from the latter list. The elements taken correspond to the index of the Bool in its list. For example:
filterByLists [True, False, True, False] "abcd" "wxyz" = "axcz"
This function does not check whether the lists have equal length.-
deriving-compat Data.Deriving.Internal No documentation available.
liftReadListPrec2DefaultValName :: Namederiving-compat Data.Deriving.Internal No documentation available.
liftReadListPrec2ValName :: Namederiving-compat Data.Deriving.Internal No documentation available.
liftReadListPrecDefaultValName :: Namederiving-compat Data.Deriving.Internal No documentation available.
liftReadListPrecValName :: Namederiving-compat Data.Deriving.Internal No documentation available.