Hoogle Search
Within LTS Haskell 24.12 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupWithDefault :: ByteString -> CI ByteString -> Headers -> ByteStringsnap-core Snap.Types.Headers Look up the value of a given HTTP header field or return the provided default value when that header field is not present. Example:
ghci> :set -XOverloadedStrings ghci> let hdrs = H.fromList [("Host", "localhost")] ghci> H.lookupWithDefault "host" "127.0.0.1" $ hdrs "localhost" ghci> H.lookupWithDefault "Accept" "text/plain" $ hdrs "text/plain"
lookupMode :: AnyMode -> YiM AnyModeyi-core Yi.Mode.Common Check whether a mode of the same name is already in modeTable and returns the original mode, if it isn't the case.
lookupTag :: Tag -> TagTable -> [(FilePath, Int)]yi-core Yi.Tag Find the location of a tag using the tag table. Returns a full path and line number
lookupEnv :: PandocMonad m => Text -> m (Maybe Text)pandoc Text.Pandoc.Class Lookup an environment variable.
lookupEnv :: MonadIO m => Text -> m (Maybe Text)pandoc Text.Pandoc.Class.IO Lookup an environment variable in the programs environment.
lookupHighlightingStyle :: PandocMonad m => String -> m Stylepandoc Text.Pandoc.Highlighting Lookup style from a name. If the name is a standard style, load it; if it ends in ".theme", attempt to load a KDE theme from the file path specified.
lookupMedia :: FilePath -> MediaBag -> Maybe MediaItempandoc Text.Pandoc.MediaBag Lookup a media item in a MediaBag, returning mime type and contents.
lookupTerm :: Term -> Translations -> Maybe Textpandoc Text.Pandoc.Translations.Types Lookup a term in a Translations.
lookupMetaBlocks :: Text -> Meta -> [Block]pandoc Text.Pandoc.Writers.Shared Retrieve the metadata value for a given key and extract blocks.
lookupMetaBool :: Text -> Meta -> Boolpandoc Text.Pandoc.Writers.Shared Retrieve the metadata value for a given key and convert to Bool.