Hoogle Search
Within LTS Haskell 24.65 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
lookupMin :: Map k a -> Maybe (k, a)rio RIO.Map The minimal key of the map. Returns Nothing if the map is empty.
lookupMin (fromList [(5,"a"), (3,"b")]) == Just (3,"b") lookupMin empty = Nothing
lookupEnvFromContext :: (MonadReader env m, HasProcessContext env) => Text -> m (Maybe Text)rio RIO.Process Look into the ProcessContext and return the specified environmet variable if one is available.
lookupGE :: Ord a => a -> Set a -> Maybe ario RIO.Set Find smallest element greater or equal to the given one.
lookupGE 3 (fromList [3, 5]) == Just 3 lookupGE 4 (fromList [3, 5]) == Just 5 lookupGE 6 (fromList [3, 5]) == Nothing
lookupGT :: Ord a => a -> Set a -> Maybe ario RIO.Set Find smallest element greater than the given one.
lookupGT 4 (fromList [3, 5]) == Just 5 lookupGT 5 (fromList [3, 5]) == Nothing
lookupIndex :: Ord a => a -> Set a -> Maybe Intrio RIO.Set Lookup the index of an element, which is its zero-based index in the sorted sequence of elements. The index is a number from 0 up to, but not including, the size of the set.
isJust (lookupIndex 2 (fromList [5,3])) == False fromJust (lookupIndex 3 (fromList [5,3])) == 0 fromJust (lookupIndex 5 (fromList [5,3])) == 1 isJust (lookupIndex 6 (fromList [5,3])) == False
lookupLE :: Ord a => a -> Set a -> Maybe ario RIO.Set Find largest element smaller or equal to the given one.
lookupLE 2 (fromList [3, 5]) == Nothing lookupLE 4 (fromList [3, 5]) == Just 3 lookupLE 5 (fromList [3, 5]) == Just 5
lookupLT :: Ord a => a -> Set a -> Maybe ario RIO.Set Find largest element smaller than the given one.
lookupLT 3 (fromList [3, 5]) == Nothing lookupLT 5 (fromList [3, 5]) == Just 3
-
rio RIO.Set The maximal element of a set.
-
rio RIO.Set The minimal element of a set.
lookupHeader :: HeaderName -> [Header] -> Maybe StringHTTP Network.HTTP.Headers lookupHeader hdr hdrs locates the first header matching hdr in the list hdrs.