Hoogle Search

Within LTS Haskell 24.26 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. lookupUnitId :: UnitState -> UnitId -> Maybe UnitInfo

    ghc GHC.Unit.State

    Find the unit we know about with the given unit id, if any

  2. lookupUnitId' :: UnitInfoMap -> UnitId -> Maybe UnitInfo

    ghc GHC.Unit.State

    Find the unit we know about with the given unit id, if any

  3. lookupAll :: Text -> Form -> [Text]

    http-api-data Web.FormUrlEncoded

    Find all values corresponding to a given key in a Form.

    >>> lookupAll "name" []
    []
    
    >>> lookupAll "name" [("name", "Oleg")]
    ["Oleg"]
    
    >>> lookupAll "name" [("name", "Oleg"), ("name", "David")]
    ["Oleg","David"]
    

  4. lookupMaybe :: Text -> Form -> Either Text (Maybe Text)

    http-api-data Web.FormUrlEncoded

    Lookup an optional value for a key. Fail if there is more than one value.

    >>> lookupMaybe "name" []
    Right Nothing
    
    >>> lookupMaybe "name" [("name", "Oleg")]
    Right (Just "Oleg")
    
    >>> lookupMaybe "name" [("name", "Oleg"), ("name", "David")]
    Left "Duplicate key \"name\""
    

  5. lookupUnique :: Text -> Form -> Either Text Text

    http-api-data Web.FormUrlEncoded

    Lookup a unique value for a key. Fail if there is zero or more than one value.

    >>> lookupUnique "name" []
    Left "Could not find key \"name\""
    
    >>> lookupUnique "name" [("name", "Oleg")]
    Right "Oleg"
    
    >>> lookupUnique "name" [("name", "Oleg"), ("name", "David")]
    Left "Duplicate key \"name\""
    

  6. lookupAll :: Text -> Form -> [Text]

    http-api-data Web.Internal.FormUrlEncoded

    Find all values corresponding to a given key in a Form.

    >>> lookupAll "name" []
    []
    
    >>> lookupAll "name" [("name", "Oleg")]
    ["Oleg"]
    
    >>> lookupAll "name" [("name", "Oleg"), ("name", "David")]
    ["Oleg","David"]
    

  7. lookupMaybe :: Text -> Form -> Either Text (Maybe Text)

    http-api-data Web.Internal.FormUrlEncoded

    Lookup an optional value for a key. Fail if there is more than one value.

    >>> lookupMaybe "name" []
    Right Nothing
    
    >>> lookupMaybe "name" [("name", "Oleg")]
    Right (Just "Oleg")
    
    >>> lookupMaybe "name" [("name", "Oleg"), ("name", "David")]
    Left "Duplicate key \"name\""
    

  8. lookupUnique :: Text -> Form -> Either Text Text

    http-api-data Web.Internal.FormUrlEncoded

    Lookup a unique value for a key. Fail if there is zero or more than one value.

    >>> lookupUnique "name" []
    Left "Could not find key \"name\""
    
    >>> lookupUnique "name" [("name", "Oleg")]
    Right "Oleg"
    
    >>> lookupUnique "name" [("name", "Oleg"), ("name", "David")]
    Left "Duplicate key \"name\""
    

  9. lookupBoundedEnumOf :: (Bounded a, Enum a, Eq b) => (a -> b) -> b -> Maybe a

    http-api-data Web.Internal.HttpApiData

    Lookup values based on a precalculated mapping of their representations.

  10. lookupAsc :: TrieSet v -> [Int] -> v

    regex-tdfa Text.Regex.TDFA.IntArrTrieSet

    This is the accessor for the Trie. The list of keys should be sorted.

Page 66 of many | Previous | Next