track logging in PurePrompt state
Open
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the feature request**
add a parameter to add a log queue accumulator in the prompt state:
```haskell
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
Contributor guide
Assessment
This issue has not been assessed yet.