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

Closed
Open
Opened Mar 18, 2024 by Alfredo Di Napoli@AlfredoDiNapoli
  • Report abuse
  • New issue
Report abuse New issue

Fix `cabal build` compilation warnings

We have a few compilation warnings when building the project with cabal build:

In order, the following will be built (use -v for more details):
 - gargantext-0.0.6.9.9.9.6.7 (exe:gargantext-server) (first run)
Warning: gargantext.cabal:819:3: Unknown field: "optimization"
Warning: gargantext.cabal:68:3: Unknown field: "optimization"
Configuring executable 'gargantext-server' for gargantext-0.0.6.9.9.9.6.7..
Warning: Languages listed as extensions: GHC2021. Languages must be specified
in either the 'default-language' or the 'other-languages' field.
Preprocessing executable 'gargantext-server' for gargantext-0.0.6.9.9.9.6.7..
Building executable 'gargantext-server' for gargantext-0.0.6.9.9.9.6.7..

In particular:

  • The optimization field is misplaced; it needs to be placed inside the cabal.project, not the cabal file!

  • The GHC2021 is listed as an extension (technically is), but it's more than that; it needs to be placed in the default-language as instructed by cabal.

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