-
Notifications
You must be signed in to change notification settings - Fork 706
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
Complete the documentation of main-is
field
#10833
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.
That's an improvement, thanks! Could you replace -
with proper em-dashes if you really want dashes? Dash is a little tricky, and I'd simply use a comma or full stop depending on the context, but it's up to you. Also 'main'
with single quotes looks strange to my eye --- I'd use double quotes or the code backticks. But again, it's a slippery place.
998012c
to
a736bb3
Compare
@ulysses4ever, to avoid some long sentences, I've taken a slightly different approach. I've added two short sentences of introductory context, boiled down from the introduction to Chapter 5 of the Haskell Language Report, except that I have used the phrase "IO action" rather than "computation of type |
Thanks for addressing the comments! I went ahead and put the merge label. |
we may even consider backporting it to 3.14... |
Explains the use of GHC's `-main-is` option in Cabal files, when the usual convention of `Main.main` is not being followed.
The motivation is the discussion at this Stack issue:
main-is
field (source file) does not alter GHC's-main-is
option (module and function name) commercialhaskell/stack#6695where a user wanted to use
Foo.hs
containingFoo.main
and expected Cabal'smain-is
field to interpret that.Explains the use of GHC's
-main-is
option in Cabal files, when the usual convention ofMain.main
is not being followed.This PR does not modify behaviour or interface
Not applicable, but style of surrounding text is followed.
Not applicable.