-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Make servant-foreign code nicer #372
Make servant-foreign code nicer #372
Conversation
If you too feel like it looks more readable this way, maybe i'll go through other packages with this PR |
Nice! 👍 Would be even nicer if you add a proper haddock documentation! No pressure though :) |
* non-messy imports * got rid of most long lines (>80 chars) * prisms for sum types and newtypes(we use lens anyway, so why not) * consistent indentation
fa9a90d
to
e6e13fd
Compare
This is all great, but it'd be a big job to rebase #351 on top of it. Let me know if you want a hand with anything. |
👍 - @dredozubov can we merge? |
@jkarni sure, but i also wonder if it's worth doing repo-wise. I'd be more than happy to see it, but it contradicts the
from https://github.com/haskell-servant/servant/blob/master/CONTRIBUTING.md |
Make servant-foreign code nicer
Fair enough, and this is a nice tidy-up. Do you think it'd be helpful if I try to rebase #351 on top of this now? Or do you already know my approach there wouldn't be optimal? |
@purcell i'll be able to tell a bit later, don't hurry with rebasing it. Are you on irc btw? |
Ah, no, sorry, but I'm on github a lot and happy to discuss. And happy to pop onto IRC at some point if it'd help. |
I felt like i have to do this before addressing a few other issues with servant-foreign
Basically it's:
Also i made some changes to demonstrate my point from #345 (comment)