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.

  1. data ListWorkflowTemplatesResponse

    gogol-dataproc Gogol.Dataproc.Types

    A response to a request to list workflow templates in a project. See: newListWorkflowTemplatesResponse smart constructor.

  2. ListWorkflowTemplatesResponse :: Maybe Text -> Maybe [WorkflowTemplate] -> Maybe [Text] -> ListWorkflowTemplatesResponse

    gogol-dataproc Gogol.Dataproc.Types

    No documentation available.

  3. module Data.List_LHAssumptions

    No documentation available.

  4. listToMaybe :: [a] -> Maybe a

    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]
    

  5. listEncoding :: (a -> Encoding) -> [a] -> Encoding

    aeson 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
    

  6. listParser :: (Value -> Parser a) -> Value -> Parser [a]

    aeson Data.Aeson.Types

    Helper function to use with liftParseJSON. See listEncoding.

  7. listValue :: (a -> Value) -> [a] -> Value

    aeson Data.Aeson.Types

    Helper function to use with liftToJSON, see listEncoding.

  8. listArray :: Ix i => (i, i) -> [e] -> Array i e

    array Data.Array

    No documentation available.

  9. listArray :: (IArray a e, Ix i) => (i, i) -> [e] -> a i e

    array 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.

  10. listArrayST :: Ix i => (i, i) -> [e] -> ST s (STArray s i e)

    array Data.Array.Base

    No documentation available.

Page 21 of many | Previous | Next