Open
Description
Describe the feature request
add a parameter to add a log queue accumulator in the prompt state:
type LogQueue = [Text]
newtype PurePrompt a = PurePrompt
{ _runPrompt
:: NonEmpty String
-> Either BreakException (a, NonEmpty (LogQueue, String))
}
deriving (Functor)
Additional context
Fixing a bug #9346 a suggested testing strategy is to parse log outputs to confirm that the changes to the code had the desired effect. To achieve this the requested changes were suggested.
Thanks to @emilypi for the code suggestion and the collaboration
Activity
mpickering commentedon Nov 28, 2023
If the goal here is to write a test then it seems much simpler to add a test to
cabal-testsuite/PackageTests
than adding a unit test.aleeusgr commentedon Nov 28, 2023
It's a more general enhancement that would allow automating tests for changes related to logging in cabal-install.
Is it not?
I'm sorry, the description could be more specific.