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.

  1. toList :: List l => l a -> ItemM l [a]

    List Data.List.Class

    An action to transform a List to a list

    > runIdentity $ toList "hello!"
    "hello!"
    

  2. transformListMonad :: (List l, List k) => (ItemM l (k a) -> ItemM k (k a)) -> l a -> k a

    List Data.List.Class

    Transform the underlying monad of a list given a way to transform the monad

    > import Data.List.Tree (bfs)
    > bfs (transformListMonad (\(Identity x) -> [x, x]) "hey" :: ListT [] Char)
    "hheeeeyyyyyyyy"
    

  3. fromAscList :: (Eq k, Ord p) => [Binding k p] -> PSQ k p

    PSQueue Data.PSQueue

    O(n) Build a queue from a list of bindings in order of ascending keys. The precondition that the keys are ascending is not checked.

  4. fromDistinctAscList :: Ord p => [Binding k p] -> PSQ k p

    PSQueue Data.PSQueue

    O(n) Build a queue from a list of distinct bindings in order of ascending keys. The precondition that keys are distinct and ascending is not checked.

  5. fromList :: (Ord k, Ord p) => [Binding k p] -> PSQ k p

    PSQueue Data.PSQueue

    O(n log n) Build a queue from a list of bindings.

  6. toAscList :: PSQ k p -> [Binding k p]

    PSQueue Data.PSQueue

    O(n) Convert a queue to a list in ascending order of keys.

  7. toDescList :: PSQ k p -> [Binding k p]

    PSQueue Data.PSQueue

    O(n) Convert a queue to a list in descending order of keys.

  8. toList :: PSQ k p -> [Binding k p]

    PSQueue Data.PSQueue

    O(n) Convert a queue to a list.

  9. fromAscList :: (Eq k, Ord p) => [Binding k p] -> PSQ k p

    PSQueue Data.PSQueue.Internal

    O(n) Build a queue from a list of bindings in order of ascending keys. The precondition that the keys are ascending is not checked.

  10. fromDistinctAscList :: Ord p => [Binding k p] -> PSQ k p

    PSQueue Data.PSQueue.Internal

    O(n) Build a queue from a list of distinct bindings in order of ascending keys. The precondition that keys are distinct and ascending is not checked.

Page 155 of many | Previous | Next