-
Notifications
You must be signed in to change notification settings - Fork 36
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 module hierarchy with shorter module names #174
Conversation
The best way to review this is probably simply to build the haddocks locally and browse them… |
|
GHC < 8.0 can't handle -Wno-deprecations. Enabling the option conditionally with CPP doesn't work. It's a mess.
I think I'll hold off on converting the rest until I'm more confident that we'll eventually remove the |
I wonder whether "API" might be misunderstood to mean that the types and functions are changed too… Maybe it would be better to say "module hierarchy" or "namespace"… |
Looks good to me. Some of the deeper modules can’t be made super short, such as As for the »API«, I think »rather deep module naming hierarchy« is proably a bit verbose, but also very descriptive. |
Timeframe-wise I think we should err on the safer side – there is no need to remove the deprecated modules for years, really. Developing the library has taught me a bit about |
Indeed there's not much need to rush. The most significant downside to having both module hierarchies is that the package overview is somewhat cluttered. Nevertheless, I think we can keep up the deprecation for at least a year. |
If you use {-# OPTIONS_HADDOCK hide #-} in a module header alongside the language pragmas it'll suppress that module from appearing in generated Haddock output. I use it to hide internal modules without making it impossible to access them. Works really well for deprecated modules, too. |
Addresses #110.
TODO:
prettyprinter
libraryprettyprinter-ansi-terminal
libraryprettyprinter-convert-ansi-wl-pprint
libraryprettyprinter-compat-*
generate_readme
etc.Travis: https://travis-ci.org/github/quchen/prettyprinter/pull_requests