-
Notifications
You must be signed in to change notification settings - Fork 326
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 an Imports.hs module #440
Conversation
import Database.Redis.IO hiding (Milliseconds) | ||
import Gundeck.Monad (Gundeck, posixTime) | ||
import Gundeck.Types | ||
import Gundeck.Util.Redis | ||
|
||
import qualified Data.ByteString as Strict |
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.
SBS
instead of Strict
? not important.
another idea:
$(importQualifiedDefaults)
Which expands to a list of qualified imports we usually want. I guess the problem is that this would trigger unused import
warnings? Also not important. :-) And we can always do that another time.
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.
TH can't generate imports
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.
this problem (preludes can't provide qualified imports) has no solution AFAIK; you can use #include
s but then you have to turn off the "unused imports" warning, true
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.
Yes, i've used CPP in my last project, and the results are inconclusive. I think the other(s) liked it, I was skeptical.
Ok, no default qualified imports for now then!
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.
cool!
import Database.Redis.IO | ||
|
||
import qualified Data.ByteString.Lazy as BSL |
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.
(LBS
? i like the aliases from string-conversions
. :-) )
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.
Note that I don't disapprove but I will request changes to avoid us accidentally merging this in too early.
@tiago-loureiro I think this can be merged now, can you un-reject? |
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.
Please re-trigger the build before merging.
* Add Imports and migrate cargohold, gundeck, proxy * Fix warnings * Rebuild
Just putting it out there so that nobody tries to do it on their own.
Let's definitely not merge it before LTS pull-requests.