Stack: Use a pretty-printer and polish formatting of output

Created on 15 Mar 2016  路  3Comments  路  Source: commercialhaskell/stack

I think it'd be a good idea to start using a pretty printer! ansi-wl-pprint fits the task quite nicely.

Bonus points would be to use annotated-wl-pprint, and use the annotations to do the same thing that ansi-wl-pprint can do with coloring text and such. (I imagine those annotations would also make a good addition to that libary)

I'm imagining having some utility functions that allow you to do $logPretty, $logPrettyError, or $logPrettyWarn. When used, these would have the type (MonadLogger m, HasPrettyOptions env, MonadReader env m) => Doc -> m (). In other words, we need to be able to log the output and have pretty options to pass to the pretty printer. These changes would mostly happen in Stack.Types.StackT.

awaiting pull request output (UUX) newcomer friendly

Most helpful comment

Wut?! No reactions :disappointed:

I'm pumped for this!

Unless the point got a bit blurred out without screenshots; I feel a bit lonely in haskellandia

All 3 comments

Wut?! No reactions :disappointed:

I'm pumped for this!

Unless the point got a bit blurred out without screenshots; I feel a bit lonely in haskellandia

I imagine that the lack of responses is more representative of there not being more info to add / not wanting to paint the bikeshed. In other words, people may be tacitly excited. Feel free to implement! :D

I've implemented this!

Check it out: https://github.com/commercialhaskell/stack/pull/2236

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bitemyapp picture bitemyapp  路  3Comments

abhinav picture abhinav  路  4Comments

jwaldmann picture jwaldmann  路  4Comments

symbiont-joseph-kachmar picture symbiont-joseph-kachmar  路  3Comments

sjakobi picture sjakobi  路  3Comments