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. lookupSub :: forall nm b (v :: Type -> Type) n m . IsName nm => nm -> SubMap b v n m -> Maybe [Subdiagram b v n m]

    diagrams-lib Diagrams.Names

    Look for the given name in a name map, returning a list of subdiagrams associated with that name. If no names match the given name exactly, return all the subdiagrams associated with names of which the given name is a suffix.

  2. lookupOf :: Eq k => Getting (Endo (Maybe v)) s (k, v) -> k -> s -> Maybe v

    diagrams-lib Diagrams.Prelude

    The lookupOf function takes a Fold (or Getter, Traversal, Lens, Iso, etc.), a key, and a structure containing key/value pairs. It returns the first value corresponding to the given key. This function generalizes lookup to work on an arbitrary Fold instead of lists.

    >>> lookupOf folded 4 [(2, 'a'), (4, 'b'), (4, 'c')]
    Just 'b'
    
    >>> lookupOf each 2 [(2, 'a'), (4, 'b'), (4, 'c')]
    Just 'a'
    
    lookupOf :: Eq k => Fold s (k,v) -> k -> s -> Maybe v
    

  3. lookupFlagAssignment :: FlagName -> FlagAssignment -> Maybe Bool

    Cabal-syntax Distribution.Types.Flag

    Lookup the value for a flag Returns Nothing if the flag isn't contained in the FlagAssignment.

  4. lookupComponent :: PackageDescription -> ComponentName -> Maybe Component

    Cabal-syntax Distribution.Types.PackageDescription

    No documentation available.

  5. lookup1 :: Eq k => k -> AssocList k [e] -> [e]

    hxt Data.AssocList

    lookup with empty list (empty string) as default value

  6. lookupDef :: Eq k => v -> k -> AssocList k v -> v

    hxt Data.AssocList

    lookup with default value

  7. lookupNode :: Ord a => a -> NodeMap a -> Maybe Node

    fgl Data.Graph.Inductive.NodeMap

    Lookup for the node in the map.

  8. lookupDefault :: StaticMap t => Val t -> Key t -> t -> Val t

    relude Relude.Extra.Map

    Return the value to which the specified key is mapped, or the default value if this map contains no mapping for the key.

    >>> let myHashMap = HashMap.fromList [('a', "xxx"), ('b', "yyy")]
    
    >>> lookupDefault "zzz" 'b' myHashMap
    "yyy"
    
    >>> lookupDefault "zzz" 'c' myHashMap
    "zzz"
    

  9. lookupEnv :: MonadIO m => String -> m (Maybe String)

    relude Relude.Lifted.Env

    Lifted version of lookupEnv.

  10. lookupSub :: forall nm b (v :: Type -> Type) n m . IsName nm => nm -> SubMap b v n m -> Maybe [Subdiagram b v n m]

    diagrams-core Diagrams.Core

    Look for the given name in a name map, returning a list of subdiagrams associated with that name. If no names match the given name exactly, return all the subdiagrams associated with names of which the given name is a suffix.

Page 72 of many | Previous | Next