| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Test.Tasty.Extras
Contents
Synopsis
- newtype Layer a r = Layer {
- unLayer :: Doc ann) -> TestNested
- makeVersionedFilePath :: [TestTree
Documentation
A monad allowing one to emit elements of type a. Semantically equivalent to
Writer (DList a) r, but:
- is faster, being based on the Church-encoded free monad
- implements
Monoid, so that all the Data.Foldable convenience is supported - has better ergonomics as it doesn't require the user to wrap
avalues intoDLists
This type is also semantically equivalent to Stream (Of a) Identity r.
Useful for monadically creating tree-like structures, for example the following
import Data.Tree
yield = embed . pure
main = putStrLn . drawTree . Node "a" . toList $ do
yield "b"
nestWith (Node "c") $ do
yield "d"
yield "e"
yield "f"will produce
-a | +- b | +- c | | | +- d | | | `- e | `- f
Constructors
| Layer | ||||||||||||
Fields newtype TestNestedM r # Constructors
| ||||||||||||