-
Notifications
You must be signed in to change notification settings - Fork 688
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
Fixed new haddock 2.2 - resolves partly https://github.com/haskell/cabal/issues/5232 #5269
Conversation
woops, initially based it on master rather than 2.2 for the PR, fixed that |
@hvr @alexbiehl @gbaz the more precise fix is also needed, but I also dont know how to wire up the warning logging to the usual output.... even this PR alone should fix up the main main issue in 2.2 cabal-install ... though the more polished one is needed to... how do we get this IN and released? |
@23Skidoo thoughts? |
Sorry for the late reply. I think this is an OK way to go. Cabal doesn't give us too many opportunities to hook into error handling. But: I think we should really reuse error reporting from the hard failing one to have consistent look of error messages. |
Makes sense. I wasn’t sure how to do that.
It still needs to do the no docs bit
What would be a better than OK approach?
…On Tue, May 29, 2018 at 4:51 PM Alexander Biehl ***@***.***> wrote:
Sorry for the late reply. I think this is an OK way to go. Cabal doesn't
give us too many opportunities to hook into error handling. But: I think we
should really reuse error reporting from the hard failing one to have
consistent look of error messages.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5269 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwgL9CuyeWa7WlrB1szln2qRhWrB9ks5t3bTsgaJpZM4TZLoe>
.
|
] | ||
where | ||
handler :: Exception e => e -> IO () | ||
handler except= do putStr system ; putStrLn (show except) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should use warn
instead of putStr[Ln]
.
See |
Thx! I’ll see if I have time after Tuesday. But if you wanna donate this
to a new contributor at zurihac please feel welcome to
…On Sat, Jun 9, 2018 at 9:26 AM Mikhail Glushenkov ***@***.***> wrote:
But: I think we should really reuse error reporting from the hard failing
one to have consistent look of error messages.
See Distribution.Client.ProjectOrchestration.dieOnBuildFailures.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5269 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwloKO5J8c-mzLEZcVr5msEyvkPyTks5t68z_gaJpZM4TZLoe>
.
|
so action items i'm gonna update this for today
@23Skidoo hrmm, beyond adding warn, how do you propose i use/adapt the dieOnBuildFailures to this case? |
…nup the explicit export formating
ok, i pushed some partially done changes,
|
Superseded by #5459. |
attempt at fixing #5232
Please include the following checklist in your PR:
[ci skip]
is used to avoid triggering the build bots.Please also shortly describe how you tested your change. Bonus points for added tests!