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
  • #181

Closed
Open
Opened Feb 13, 2023 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

Multiple `ghc-options` inside a `stack.yaml` seems to be ignored by `stack`

While working on #180, I wanted to throw weeder at the project, to see if we could get some quick wins. While doing that, I have edited the ghc-options section of our stack.yaml with the recommended weeder settings, but I couldn't understand why stack wasn't picking them up.

It turns out that we have two ghc-options sections in our stack.yaml: one here and one here. I think that's happening is that stack is considering only the latest it encounters. After I have placed the relevant weeder settings in the last section, it worked.

Regardless of stack's behaviour, we should probably unify them, as it's confusing and error prone to have two ghc-options entries. This also means that it's likely that this currently not being enforced by stack:

ghc-options:
  "$everything": -fprint-potential-instances
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#181