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.

  1. ListSessionTemplatesResponse :: Maybe Text -> Maybe [SessionTemplate] -> ListSessionTemplatesResponse

    gogol-dataproc Gogol.Dataproc.Types

    No documentation available.

  2. data ListSessionsResponse

    gogol-dataproc Gogol.Dataproc.Types

    A list of interactive sessions. See: newListSessionsResponse smart constructor.

  3. ListSessionsResponse :: Maybe Text -> Maybe [Session] -> ListSessionsResponse

    gogol-dataproc Gogol.Dataproc.Types

    No documentation available.

  4. data ListWorkflowTemplatesResponse

    gogol-dataproc Gogol.Dataproc.Types

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

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

    gogol-dataproc Gogol.Dataproc.Types

    No documentation available.

  6. module Data.List_LHAssumptions

    No documentation available.

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

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

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

    aeson Data.Aeson.Types

    Helper function to use with liftParseJSON. See listEncoding.

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

    aeson Data.Aeson.Types

    Helper function to use with liftToJSON, see listEncoding.

Page 21 of many | Previous | Next