Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
data
ListWorkflowTemplatesResponse gogol-dataproc Gogol.Dataproc.Types A response to a request to list workflow templates in a project. See: newListWorkflowTemplatesResponse smart constructor.
-
gogol-dataproc Gogol.Dataproc.Types No documentation available.
module Data.
List_LHAssumptions No documentation available.
-
base Data.Maybe The listToMaybe function returns Nothing on an empty list or Just a where a is the first element of the list.
Examples
Basic usage:>>> listToMaybe [] Nothing
>>> listToMaybe [9] Just 9
>>> listToMaybe [1,2,3] Just 1
Composing maybeToList with listToMaybe should be the identity on singleton/empty lists:>>> maybeToList $ listToMaybe [5] [5] >>> maybeToList $ listToMaybe [] []
But not on lists with more than one element:>>> maybeToList $ listToMaybe [1,2,3] [1]
listEncoding :: (a -> Encoding) -> [a] -> Encodingaeson Data.Aeson.Types Helper function to use with liftToEncoding. Useful when writing own ToJSON1 instances.
newtype F a = F [a] -- This instance encodes String as an array of chars instance ToJSON1 F where liftToJSON tj _ (F xs) = liftToJSON tj (listValue tj) xs liftToEncoding te _ (F xs) = liftToEncoding te (listEncoding te) xs instance FromJSON1 F where liftParseJSON p _ v = F <$> liftParseJSON p (listParser p) v
listParser :: (Value -> Parser a) -> Value -> Parser [a]aeson Data.Aeson.Types Helper function to use with liftParseJSON. See listEncoding.
listValue :: (a -> Value) -> [a] -> Valueaeson Data.Aeson.Types Helper function to use with liftToJSON, see listEncoding.
listArray :: Ix i => (i, i) -> [e] -> Array i earray Data.Array No documentation available.
listArray :: (IArray a e, Ix i) => (i, i) -> [e] -> a i earray Data.Array.Base Constructs an immutable array from a list of initial elements. The list gives the elements of the array in ascending order beginning with the lowest index.
listArrayST :: Ix i => (i, i) -> [e] -> ST s (STArray s i e)array Data.Array.Base No documentation available.