Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. mapM :: (Monad m, Ord b) => (a -> m b) -> Heap a -> m (Heap b)

    heaps Data.Heap

    O(n log n). Traverse the elements of the heap in sorted order and produce a new heap using Monadic side-effects.

  2. mapMonotonic :: Ord b => (a -> b) -> Heap a -> Heap b

    heaps Data.Heap

    O(n). Map a monotone increasing function over the heap. Provides a better constant factor for performance than map, but no checking is performed that the function provided is monotone increasing. Misuse of this function can cause a Heap to violate the heap property.

    >>> mapMonotonic (+1) (fromList [1,2,3])
    fromList [2,3,4]
    
    >>> mapMonotonic (*2) (fromList [1,2,3])
    fromList [2,4,6]
    

  3. map' :: Map' f ss => (forall (s :: k) . () => t s -> t' (f s)) -> PL t ss -> PL t' (S' f ss)

    hetero-parameter-list Data.HeteroParList

    No documentation available.

  4. mapM' :: (MapM' f ss, Applicative m) => (forall (s :: k) . () => t s -> m (t' (f s))) -> PL t ss -> m (PL t' (Ss' f ss))

    hetero-parameter-list Data.HeteroParList

    No documentation available.

  5. mapAnnotation :: (a -> b) -> Node a tag text -> Node b tag text

    hexpat Text.XML.Expat.Annotated

    Modify this node's annotation and all its children recursively if it's an element, otherwise no-op.

  6. mapAnnotation :: (a -> b) -> Node a tag text -> Node b tag text

    hexpat Text.XML.Expat.Extended

    Modify this node's annotation and all its children recursively if it's an element, otherwise no-op.

  7. mapDocumentAnnotation :: (a -> b) -> Document a tag text -> Document b tag text

    hexpat Text.XML.Expat.Extended

    Modify the annotation of every node in the document recursively.

  8. mapAllTags :: NodeClass n c => (tag -> tag') -> n c tag text -> n c tag' text

    hexpat Text.XML.Expat.Internal.NodeClass

    Map all tags (both tag names and attribute names) recursively.

  9. mapNodeContainer :: (NodeClass n c, List c') => (forall a . () => c a -> ItemM c (c' a)) -> n c tag text -> ItemM c (n c' tag text)

    hexpat Text.XML.Expat.Internal.NodeClass

    Change a node recursively from one container type to another, with a specified function to convert the container type.

  10. mapNodeListContainer :: (NodeClass n c, List c') => (forall a . () => c a -> ItemM c (c' a)) -> c (n c tag text) -> ItemM c (c' (n c' tag text))

    hexpat Text.XML.Expat.Internal.NodeClass

    Change a list of nodes recursively from one container type to another, with a specified function to convert the container type.

Page 222 of many | Previous | Next