leanprover / leanprover/fp-lean

Type of `main`

Open
#138 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Typo
Dominant language
Lean
Stars
192
Forks
73
PR merge metrics
No merged PRs in 30d

Description

This section suggests main can only have 3 different types:

https://github.com/leanprover/fp-lean/blob/60624372e1b7f85967de2f9f2c906fb351e0469a/functional-programming-lean/src/hello-world/summary.md?plain=1#L16-L20

I think main : List String → IO Unit is a 4th alternative, which lean seems to accept just fine.

Not a terribly important point, but I was confused as to why that wouldn't be allowed. Would be good to clarify.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open hello-world/summary.md at the linked lines and compare the documented main types with Lean's accepted forms. Clarify that main : List String → IO Unit is also accepted, then verify the surrounding explanation still reads consistently. Done means the documentation no longer implies only three valid types.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.