Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in
haskell-gargantext
haskell-gargantext
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 175
    • Issues 175
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 9
    • Merge Requests 9
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • gargantext
  • haskell-gargantexthaskell-gargantext
  • Issues
  • #388

Closed
Open
Opened Aug 22, 2024 by Grégoire Locqueville@glocqueville
  • Report abuse
  • New issue
Report abuse New issue

Remove obsolete GHC option

The files cabal.project and cabal.project.local_toCopy feature the following two GHC options:

  • -fwrite-ide-info, which tells GHC to generate HIE files upon compilation: useful for code analysis tools such as Weeder and Calligraphy
  • -hiedir=".stack-work/hiedb", which tells GHC to save HIE files in the .stack-work/hiedb directory instead of the default location.

-fwrite-ide-info is definitely useful, and should probably be left in unless it has a significant impact on build times (if it does impact performance, it could be removed and developers could add it back when they need to run code analysis tools).

-hiedir=".stack-work/hiedb", however, has no justification anymore, now that Stack is no longer the default build tool. On the other hand, it makes for a confusing experience trying to run code analysis tools only to have them fail to find where HIE files are located. It should be removed.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: gargantext/haskell-gargantext#388