-
Notifications
You must be signed in to change notification settings - Fork 0
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
Unify worker implementations #19
Conversation
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.
looks good. For the new rgenerally-typed parameters, please add brief description. Thanks!
@@ -464,11 +464,11 @@ moduleColumns m = | |||
report :: | |||
MonadIO m => | |||
MVar Log -> | |||
HscEnv -> | |||
Maybe String -> |
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.
String is always subject to haddock comment. ;-)
finalizeCache logVar hsc_env target artifacts cache0 = do | ||
finalizeCache :: | ||
MVar Log -> | ||
Maybe String -> |
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.
add haddock comment
server/lib/Server.hs
Outdated
@@ -49,8 +49,8 @@ runServer socketFile server = do | |||
$ \(conn, _peer) -> void $ | |||
forkFinally (server conn) (const $ gracefulClose conn 5000) | |||
|
|||
initWorker :: FilePath -> [FilePath] -> WorkerId -> IO HandleSet | |||
initWorker ghcPath dbPaths i = do | |||
initWorker :: Bool -> FilePath -> [FilePath] -> WorkerId -> IO HandleSet |
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.
Bool is also subject to haddock comment.
especially thisimplCustom
meaning is unclear from the name.
Introduce an optional second frontend plugin option that selects the implementation, either the default GHC main function or the local logic with custom session management.
Introduce an optional second frontend plugin option that selects the implementation, either the default GHC main function or the local logic with custom session management.