haskell-ide-engine icon indicating copy to clipboard operation
haskell-ide-engine copied to clipboard

Is HIE working with cabal script files?

Open freeman42x opened this issue 4 years ago • 1 comments

Example script file here: https://www.haskell.org/cabal/users-guide/nix-local-build.html#cabal-v2-run And here: https://github.com/haskell/cabal/issues/6122#issue-462558871

When I open Atom HIE is throwing the following error:

Fail on initialisation for "/home/neo/Projects/haskell-editor-setup/src/setup.hs".
Could not obtain flags for: "src/setup.hs".

This module was not part of any component we are aware of.

Component: ChExeName "haskell-editor-setup" with source directory: ["src"]


To expose a module, refer to:
https://www.haskell.org/cabal/users-guide/developing-packages.html

The error happens regardless whether I place the script file in project root or under src.

freeman42x avatar May 29 '20 21:05 freeman42x

Same answer as here: https://github.com/haskell/haskell-language-server/issues/111

EDIT: implicit config will never (at least not right now) succeed, explicit config might work if the mentioned issue is fixed

fendor avatar May 29 '20 21:05 fendor