Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Deduplicate main for hie/hie-wrapper #1610

Merged
merged 2 commits into from
Jan 29, 2020
Merged

Deduplicate main for hie/hie-wrapper #1610

merged 2 commits into from
Jan 29, 2020

Conversation

Gurkenglas
Copy link
Contributor

Not sure how to merge the CPP'd imports.
Note that hie-wrapper now partakes of the hSetBuffer stderr LineBuffering
and the "hie-bios".

Not sure how to merge the CPP'd imports.
Note that hie-wrapper now partakes of the hSetBuffer stderr LineBuffering
  and the "hie-bios".
@@ -15,6 +29,27 @@ data GlobalOpts = GlobalOpts
, optFiles :: [FilePath]
} deriving (Show)

initApp :: String -> IO GlobalOpts
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is now happening out of context, it would be nice if there was some documentation what this function does, e.g. initialises logger, searches for some project root, etc...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe instead reestablish context, such as by saying in a comment that this is the common prefix of hie and hie-wrapper?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that makes sense, too. Still, what it roughly does to set-up the application would be nice as well.

@fendor fendor merged commit 62f38f8 into master Jan 29, 2020
@Gurkenglas Gurkenglas deleted the mergemains branch February 2, 2020 01:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants