Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • C curry-frontend
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 71
    • Issues 71
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • curry
  • curry-frontend
  • Issues
  • #7
Closed
Open
Issue created Feb 28, 2017 by Finn Teegen@fteMaintainer

Remove addition of Prelude import to AST

Currently, during compilation the AST of a module is extended with a "virtual" import of the Prelude module unless the Prelude is explicitly imported or the import is deactivated by the NoImplicitPrelude language extension.

While the consideration of the Prelude is important for compilation, the addition to the AST can lead to problems since the AST no longer corresponds to the source program. Thus, this transformation should at least be deferred to the transformation phases.

Involved modules are:

  • Modules: Contains the function importPrelude which should be removed
  • Interfaces: Contains the function loadInterfaces which then has to load the Prelude in addition
  • Imports: Contains the functions importModules and importInterfaces which then have to load the Prelude in addition
Assignee
Assign to
Time tracking