Bonjour,

J’essaye d’utiliser IntelliJ IDEA 2017.2.1 avec le plugin HaskForce qui n’est pas le plugin standard mais semble mieux indiqué pour une installation de Haskell basée sur Stack.

Je rencontre plusieurs difficultés, les principales étant :

1) Lors de la création d’un nouveau projet, je ne trouve plus de dossier src, ni le fichier Main.hs ( qui s’y trouvait par défaut)
2) En chargeant un ancien projet, le bouton «*cabal run*» produit le message d’erreur suivant :

/usr/local/bin/cabal run --with-ghc=/usr/local/bin/ghc
Saved package config file is outdated:
• the Cabal version changed from Cabal-1.24.0.0 to Cabal-1.24.2.0
• the compiler changed from ghc-7.8 to ghc-8.0
Re-run the 'configure' command.
J'ai vraisemblablement une version de cabal compilée par une autre versio plus récente :

Ordi_B$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library


alors que la version de GHC est bien 8.0

Ordi_B$ which ghc
/usr/local/bin/ghc

Ordi_B$ /usr/local/bin/ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.2


Que signifie "Re-run the 'configure' command" ?
La commande en ligne cabal configure donne :

No cabal file found.
Please create a package description file <pkgname>.cabal
Une idée pour résoudre ce problème ?

Bertrand