Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Is HIE working with cabal script files? #1780

Open
freeman42x opened this issue May 29, 2020 · 1 comment
Open

Is HIE working with cabal script files? #1780

freeman42x opened this issue May 29, 2020 · 1 comment

Comments

@freeman42x
Copy link

Example script file here: https://www.haskell.org/cabal/users-guide/nix-local-build.html#cabal-v2-run
And here: haskell/cabal#6122 (comment)

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.

@fendor
Copy link
Collaborator

fendor commented May 29, 2020

Same answer as here: haskell/haskell-language-server#111

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants