Skip to content

Conversation

@0rphee
Copy link

@0rphee 0rphee commented Jul 1, 2025

  • Tests seem to pass: https://github.com/0rphee/optparse-applicative/actions (Though they have changed since most of the API is not longer in terms of String)
  • Adjusted build-depends bounds and remove support to ghc <8.6 (due to process >= 1.6.26.0). Also, as mentioned in Support for ospath/osstring #491, filepath >= 1.5 and os-string >= 2.0.5 are needed.
  • Since text is already a transitive dependency, so I also updated some of the API to use that instead of String.
    • As the output of prettyprinter is LazyText I've updated the API to not change this type.
    • I use Text.IO functions for printing.
  • I'm not entirely sure of some of the encoding/decoding stuff, I've used unsafePerformIO . decodeLE, but also new functions Options.Applicative.Help.Pretty.osStringToStrictText (built in terms of ByteString -> Text functions). It would be nice if there was a straight OsString -> Text, instead of the need to pass through String or ByteString.
  • For the moment I've left Options.Applicative.Help.Levenshtein as-is (using String), but the Options.Applicative.Builder.Completer (which has heavy use of uncons) module is updated, it's expected that Levenshtein would look like Completer.
  • It'd be nice to have OsString.getProgName and OsString.readProcess in process.
  • Docs & README are not updated yet.

Tests passing on 9.2.8, 9.4.8, 9.6.7, 9.8.4, 9.10.1, 9.12.2

Clean hie.yaml

Fix os-string-io provenance

Fix haskell-ci

haskell-ci regenerate --installed=-process

Adjust build-depends bounds and remove support to ghc <8.6

Use text
@0rphee
Copy link
Author

0rphee commented Jul 25, 2025

@HuwCampbell hi, sorry for the ping. Is OsString support planned? or should it be better to make a different package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant