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.
-
containers Data.Sequence.Internal No documentation available.
drawForest :: [Tree String] -> Stringcontainers 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
subForest :: Tree a -> [Tree a]containers Data.Tree zero or more child trees
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.
unfoldForestM :: Monad m => (b -> m (a, [b])) -> [b] -> m [Tree a]containers Data.Tree Monadic forest builder, in depth-first order
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.
-
Concrete functor and monad transformers A portable library of functor and monad transformers, inspired by the paper
- "Functional Programming with Overloading and Higher-Order Polymorphism", by Mark P Jones, in Advanced School of Functional Programming, 1995 (http://web.cecs.pdx.edu/~mpj/pubs/springschool.html).
- 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.
-
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.
before :: IO a -> SpecWith a -> Spechspec Test.Hspec Run a custom action before every spec item.
beforeAll :: HasCallStack => IO a -> SpecWith a -> Spechspec Test.Hspec Run a custom action before the first spec item.