I'm trying to write a patch to optparse-applicative to use prettyprinter instead.
One of the requirements 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.
I'm trying to write a patch to
optparse-applicativeto useprettyprinterinstead.One of the requirements is to not create a dependency on the
textpackage.The
STextconstructor usesTextwhich forces me to useData.Text.packandData.Text.unpackwhich forces me to add a dependency ontext.If
prettyprinterexportspack,unpackandText, I believe it would solve my problem because I will be able to use it to convert toStringdo my work there and convert back.