Hoogle Search
Within LTS Haskell 24.28 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
Provide trees (of instructions), so that lists of instructions can be appended in linear time.
-
ghc-lib-parser GHC.Data.OrdList No documentation available.
addListToSS :: SizedSeq a -> [a] -> SizedSeq aghc-lib-parser GHC.Data.SizedSeq No documentation available.
fromList :: forall (m :: Type -> Type) a . Monad m => [a] -> Stream m a ()ghc-lib-parser GHC.Data.Stream Turn a list into a Stream, by yielding each element in turn.
lkList :: TrieMap m => (forall b . () => k -> m b -> Maybe b) -> [k] -> ListMap m a -> Maybe aghc-lib-parser GHC.Data.TrieMap No documentation available.
-
ghc-lib-parser GHC.Data.TrieMap No documentation available.
fromAscList :: [(Key, a)] -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Internal Build a map from a list of key/value pairs where the keys are in ascending order.
fromAscList [(3,"b"), (5,"a")] == fromList [(3, "b"), (5, "a")] fromAscList [(3,"b"), (5,"a"), (5,"b")] == fromList [(3, "b"), (5, "b")]
fromAscListWith :: (a -> a -> a) -> [(Key, a)] -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Internal Build a map from a list of key/value pairs where the keys are in ascending order, with a combining function on equal keys. The precondition (input list is ascending) is not checked.
fromAscListWith (++) [(3,"b"), (5,"a"), (5,"b")] == fromList [(3, "b"), (5, "ba")]
fromAscListWithKey :: (Key -> a -> a -> a) -> [(Key, a)] -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Internal Build a map from a list of key/value pairs where the keys are in ascending order, with a combining function on equal keys. The precondition (input list is ascending) is not checked.
let f key new_value old_value = (show key) ++ ":" ++ new_value ++ "|" ++ old_value fromAscListWithKey f [(3,"b"), (5,"a"), (5,"b")] == fromList [(3, "b"), (5, "5:b|a")]
fromDistinctAscList :: [(Key, a)] -> Word64Map aghc-lib-parser GHC.Data.Word64Map.Internal Build a map from a list of key/value pairs where the keys are in ascending order and all distinct. The precondition (input list is strictly ascending) is not checked.
fromDistinctAscList [(3,"b"), (5,"a")] == fromList [(3, "b"), (5, "a")]