gren-lang / gren-lang/compiler
Remove Gren prefix when generating JS modules
Nobody has claimed this yet.
- Dominant language
- Haskell
- Stars
- 503
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
When importing a JS module generated by Gren, the exported applications is available under under a Gren prefix, like so:
Gren.Main.init
The Gren prefix makes sense when we're adding things directly onto the window object in the browser, but makes little sense otherwise.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the compiler entry point that generates JavaScript modules and inspect how the exported application is currently named, including the Gren.Main.init example. Determine the intended module export shape, then verify that generated modules expose the application without the Gren prefix while browser window behavior remains understood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, javascript
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100