Hoogle Search

Within LTS Haskell 24.40 (ghc-9.10.3)

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

  1. class MaybeForce a

    containers Data.Sequence.Internal

    No documentation available.

  2. drawForest :: [Tree String] -> String

    containers Data.Tree

    2-dimensional ASCII drawing of a forest.

    Examples

    putStr $ drawForest $ map (fmap show) [(Node 1 [Node 2 [], Node 3 []]), (Node 10 [Node 20 []])]
    
    1
    |
    +- 2
    |
    `- 3
    
    10
    |
    `- 20
    

  3. subForest :: Tree a -> [Tree a]

    containers Data.Tree

    zero or more child trees

  4. unfoldForest :: (b -> (a, [b])) -> [b] -> [Tree a]

    containers Data.Tree

    Build a (possibly infinite) forest from a list of seed values in breadth-first order. unfoldForest f seeds invokes unfoldTree on each seed value. For a monadic version see unfoldForestM_BF.

  5. unfoldForestM :: Monad m => (b -> m (a, [b])) -> [b] -> m [Tree a]

    containers Data.Tree

    Monadic forest builder, in depth-first order

  6. unfoldForestM_BF :: Monad m => (b -> m (a, [b])) -> [b] -> m [Tree a]

    containers Data.Tree

    Monadic forest builder, in breadth-first order See unfoldForest for more info. Implemented using an algorithm adapted from Breadth-First Numbering: Lessons from a Small Exercise in Algorithm Design, by Chris Okasaki, ICFP'00.

  7. package transformers

    Concrete functor and monad transformers A portable library of functor and monad transformers, inspired by the paper

    This package contains:
    • the monad transformer class (in Control.Monad.Trans.Class)
    • concrete functor and monad transformers, each with associated operations and functions to lift operations associated with other transformers.
    The package can be used on its own in portable Haskell code, in which case operations need to be manually lifted through transformer stacks (see Control.Monad.Trans.Class for some examples). Alternatively, it can be used with the non-portable monad classes in the mtl or monads-tf packages, which automatically lift operations introduced by monad transformers through other transformers.

  8. propertyForAllShrinkShow :: Testable prop => Gen a -> (a -> [a]) -> (a -> [String]) -> (a -> prop) -> Property

    QuickCheck Test.QuickCheck

    Optional; used internally in order to improve shrinking. Tests a property but also quantifies over an extra value (with a custom shrink and show function). The Testable instance for functions defines propertyForAllShrinkShow in a way that improves shrinking.

  9. before :: IO a -> SpecWith a -> Spec

    hspec Test.Hspec

    Run a custom action before every spec item.

  10. beforeAll :: HasCallStack => IO a -> SpecWith a -> Spec

    hspec Test.Hspec

    Run a custom action before the first spec item.

Page 403 of many | Previous | Next