haskell-prettyprinter / haskell-prettyprinter/prettyprinter

'line' not being 'group'ed

Open
#162 6 comments 0 reactions 0 assignees View on GitHub
Documentation Help wanted
Dominant language
Haskell
Stars
309
Forks
43
Avg merge
21h 25m
Merged PRs (30d)
1

Description

I'm not quite experienced enough with this library to confidently call this a bug, but the following behaviour certainly seems odd:

``` haskell
putDoc $ group $ "a" <> line <> "b" <> hardline <> "c"
```

outputs:

```
a
b
c
```

as though the use of `hardline` has made the `line` hard as well. The same result is seen with `"a" <> hardline <> "b" <> line <> "c"`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.