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 thedefault-language
as instructed bycabal
.