Hoogle Search
Within LTS Haskell 24.34 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
bytestring Data.ByteString.Builder.Internal Fill a BufferRange using a BuildStep.
finalBuildStep :: BuildStep ()bytestring Data.ByteString.Builder.Internal The final build step that returns the done signal.
testCaseSteps :: TestName -> ((String -> IO ()) -> Assertion) -> TestTreetasty-hunit Test.Tasty.HUnit Create a multi-step unit test. Example:
main = defaultMain $ testCaseSteps "Multi-step test" $ \step -> do step "Preparing..." -- do something step "Running part 1" -- do something step "Running part 2" -- do something assertFailure "BAM!" step "Running part 3" -- do something
The step calls are mere annotations. They let you see which steps were performed successfully, and which step failed. You can think of step as putStrLn, except putStrLn would mess up the output with the console reporter and get lost with the others. For the example above, the output will beMulti-step test: FAIL Preparing... Running part 1 Running part 2 BAM! 1 out of 1 tests failed (0.00s)
Note that:- Tasty still treats this as a single test, even though it consists of multiple steps.
- The execution stops after the first failure. When we are looking at a failed test, we know that all displayed steps but the last one were successful, and the last one failed. The steps after the failed one are not displayed, since they didn't run.
LStep :: Leftmost a -> Leftmost alens Control.Lens.Internal.Fold No documentation available.
RStep :: Rightmost a -> Rightmost alens Control.Lens.Internal.Fold No documentation available.
runParserStep :: MonadP m => ArgPolicy -> Parser a -> String -> Args -> m (Maybe (Parser a), Args)optparse-applicative Options.Applicative.Common No documentation available.
foreachStep :: Monad m => (String -> m ()) -> (a -> m ()) -> StepT m a -> m ()servant Servant.Types.SourceT See foreach.
-
servant Servant.Types.SourceT Traverse the StepT and call the given function for each Yield.
fromActionStep :: Functor m => (a -> Bool) -> m a -> StepT m aservant Servant.Types.SourceT No documentation available.
fromStepT :: forall (m :: Type -> Type) a . StepT m a -> SourceT m aservant Servant.Types.SourceT Create SourceT from Step. Note: often enough you want to use SourceT directly.