-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
document how to use pretty-simple as default ghci printer #108
Comments
Yeah, I'd like to flesh out that section of documentation a little. I started looking in to it properly once, but the whole process of writing .ghci files is fraught with awkward edge cases. Especially when needing to import packages. For one thing, I've never been clear about the rules around qualifying imports. I eventually got hung up on haskell/cabal#7789. There are definitely upstream improvements to be made, in GHC as well as Cabal. Anyway, this works for me on GHC 9.2:
|
Thank you. That works for me if I input it within the ghci repl, but it does not work automatically when I put it in my |
I tried the above comment's solution and set up import Text.Pretty.Simple
ghciInteractivePrint = pPrintOpt CheckColorTty defaultOutputOptionsDarkBg{outputOptionsCompact = True}
:set -interactive-print ghciInteractivePrint however it doesn't seem to work and I have to manually type them to work. could anyone help me figure out what's the problem? |
Yeah, I've ended up often using |
I have pretty-simple set as the default printer for my project by putting the following in my .ghci file at the root of the project:
How can I also enable the compact output option for the default printer?
Thanks a lot.
The text was updated successfully, but these errors were encountered: