gren-lang / gren-lang/compiler

Remove Gren prefix when generating JS modules

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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.