Hoogle Search
Within LTS Haskell 24.64 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupEnvEx :: (IsString a, MonadIO m, MonadThrow m) => String -> m aread-env-var System.ReadEnvVar Like lookupEnv, but instead of returning a Maybe, throw an EnvVarDoesNotExistException if the environment variable does not exist. The exception is thrown with throwM from MonadThrow. Lookup an environment variable that exists:
>>> setEnv "TEST_ENV_VAR" "foo" >>> lookupEnvEx "TEST_ENV_VAR" :: IO String "foo"
Lookup an environment variable that doesn't exist. Throws EnvVarDoesNotExistException.>>> lookupEnvEx "THIS_ENV_VAR_WILL_NOT_EXIST" :: IO String *** Exception: EnvVarDoesNotExistException "THIS_ENV_VAR_WILL_NOT_EXIST"
lookupLF :: NodeId -> LayoutForest a -> Maybe (LayoutTree a)reflex-vty Reflex.Vty.Widget.Layout Perform a lookup by NodeId in a LayoutForest
lookupByEmail :: IAuthBackend r => r -> Text -> IO (Maybe AuthUser)snap Snap.Snaplet.Auth No documentation available.
lookupByLogin :: IAuthBackend r => r -> Text -> IO (Maybe AuthUser)snap Snap.Snaplet.Auth No documentation available.
lookupByRememberToken :: IAuthBackend r => r -> Text -> IO (Maybe AuthUser)snap Snap.Snaplet.Auth No documentation available.
lookupByUserId :: IAuthBackend r => r -> UserId -> IO (Maybe AuthUser)snap Snap.Snaplet.Auth No documentation available.
lookupT :: Key -> PrefixTree a -> Maybe atomland Toml.Type.PrefixTree Looks up the value at a key in the PrefixTree.
lookupPrefixes :: Ord c => [c] -> TMap c a -> [([c], a)]trie-simple Data.Trie.Map lookupPrefixes xs tmap performs lookup for every prefixes of the input string xs and returns list of every pair of prefix and value exising in tmap.
Example
>>> let x = fromList [("ham", 1), ("bacon", 2), ("hamburger", 3)] >>> lookupPrefixes "hamburger and bacon" x [("ham",1),("hamburger",3)]lookupPrefix :: MonadPlus m => String -> Trie -> m Trieword-trie Data.Trie Takes a trie and a prefix and returns the sub-trie that of words with that prefix
lookupBestMatch :: EventString -> [(EventString, a)] -> MatchResult ayi-keymap-vim Yi.Keymap.Vim.Common No documentation available.