CurryInfo: base-3.4.0 / Control.Search.SearchTree.printValuesWith

definition: Info
 
printValuesWith :: Show a => Strategy a -> a -> IO ()
printValuesWith strategy exp =
  getAllValuesWith strategy exp >>= printValues
 where
  printValues [] = return ()
  printValues (x:xs) = do
   putStr (show x)
   hFlush stdout
   _ <- getLine
   printValues xs
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Prints the values of an expression w.r.t. a search strategy
on demand by the user. Thus, the user must type <ENTER> before
another value is computed and printed.
A search strategy is an operation to traverse a search tree
and collect all values, e.g., 'dfsStrategy' or 'bfsStrategy'.
Conceptually, all printed values are computed on a copy of the expression,
i.e., the evaluation of the expression does not share any results.
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_) |-> _}
name: Info
 printValuesWith
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Show a => (SearchTree a -> ValueSequence a) -> a -> Prelude.IO ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms