haskell / haskell/cabal

track logging in PurePrompt state

Open
#9,482 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.