Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Arch and OS instances of Pretty #25

Merged
merged 1 commit into from
Dec 24, 2023
Merged

Add Arch and OS instances of Pretty #25

merged 1 commit into from
Dec 24, 2023

Conversation

mpilgrem
Copy link
Member

@mpilgrem mpilgrem commented Dec 23, 2023

The motivation is that the Stack project can make use of the instances and this will avoid orphan instances.

rio-prettyprint already has a dependency on the Cabal package and, consequently, the Cabal-syntax package.

The instances mirror those of Cabal-syntax for its Distribution.Pretty.Pretty class. That class is based on the pretty package's Text.PrettyPrint.Doc type (a newtype wrapper around its Text.PrettyPrint.Annotated.HughesPJ.Doc type).

The rio-prettyprint package's StyleDoc type is based on the annotated-wl-pprint package's Text.PrettyPrint.Annotated.Leijen.Doc a type.

@mpilgrem mpilgrem merged commit 25e96c4 into master Dec 24, 2023
13 checks passed
@mpilgrem mpilgrem deleted the pretty branch December 24, 2023 13:44
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