Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,348
    • Issues 5,348
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 573
    • Merge requests 573
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #9744
Closed
Open
Issue created Oct 30, 2014 by Luite Stegeman@luiteDeveloper

Make program name and project version configurable

GHC uses cProjectVersion in a few places and ghc is hardcoded as the program name. This is used for example for determining the location of the user package database (getAppUserDataDirectory "ghc") and the names of dynamic libraries.

I've been working around this for GHCJS, but it requires copying quite a bit of code. I have a patch that adds the program name and version to Settings that I'll submit once I've tested GHCJS with HEAD.

My patch just allows these settings to be changed by GHC API clients. However, we could also make GHC itself read its own values from the settings file. This way we could add a version tag to a GHC installation without recompiling, keeping its packages and package databases separate from existing ones.

Let me know if there's any interest in this and I'll add it to the patch.

Trac metadata
Trac field Value
Version 7.9
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking