haskell-prettyprinter / haskell-prettyprinter/prettyprinter

Need prettyprinter exports to convert between `String` and `Text`

Open
#207 7 comments 0 reactions 0 assignees View on GitHub
Feature request
Dominant language
Haskell
Stars
309
Forks
43
Avg merge
21h 25m
Merged PRs (30d)
1

Description

I'm trying to write a patch to `optparse-applicative` to use `prettyprinter` instead.

One of the [requirements](https://github.com/pcapriotti/optparse-applicative/pull/428#discussion_r709511025) is to not create a dependency on the `text` package.

The `SText` constructor uses `Text` which forces me to use `Data.Text.pack` and `Data.Text.unpack` which forces me to add a dependency on `text`.

If `prettyprinter` exports `pack`, `unpack` and `Text`, I believe it would solve my problem because I will be able to use it to convert to `String` do my work there and convert back.

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.