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.
-
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.
lookupOf :: Eq k => Getting (Endo (Maybe v)) s (k, v) -> k -> s -> Maybe vdiagrams-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
lookupFlagAssignment :: FlagName -> FlagAssignment -> Maybe BoolCabal-syntax Distribution.Types.Flag Lookup the value for a flag Returns Nothing if the flag isn't contained in the FlagAssignment.
lookupComponent :: PackageDescription -> ComponentName -> Maybe ComponentCabal-syntax Distribution.Types.PackageDescription No documentation available.
lookup1 :: Eq k => k -> AssocList k [e] -> [e]hxt Data.AssocList lookup with empty list (empty string) as default value
lookupDef :: Eq k => v -> k -> AssocList k v -> vhxt Data.AssocList lookup with default value
lookupNode :: Ord a => a -> NodeMap a -> Maybe Nodefgl Data.Graph.Inductive.NodeMap Lookup for the node in the map.
lookupDefault :: StaticMap t => Val t -> Key t -> t -> Val trelude 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"
lookupEnv :: MonadIO m => String -> m (Maybe String)relude Relude.Lifted.Env Lifted version of lookupEnv.
-
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.