Comments (4)
@fendor Thanks for the confirmation! I was refering to the "config" section of the HLS documentation:
Specifically, when the text says:
"The complete configuration is a subset of
cradle:
cabal:
component: "optional component name"
stack:
component: "optional component name"
bios:
program: "program to run"
dependency-program: "optional program to run"
direct:
arguments: ["list","of","ghc","arguments"]
default:
none:
dependencies:
- someDep
"
So, I assumed that "subset" means any combination of cradles from this example. I haven't found anywhere a mention that only one cradle is supported at the time so I simply assumed it would work.
Then the IDE would still not know what you want to use.
I can imagine that IDE can use the one it finds in PATH. If it finds both, it can use any (doesn't really matter for me). But this is a different logic and probably not worth complicated the IDE setup.
I'm closing this issue since the requested feature is not supported by hie-bios
in the first place.
from implicit-hie.
Hi!
For my understanding, you do know that such a hie.yaml would be invalid? Is such a feature still useful in that case?
As another side-info, the simple cabal cradle:
cradle:
cabal:
will work presumably for cabal projects (assuming cabal >= 3.4).
from implicit-hie.
@fendor I didn't know that such a hie.yaml
would be invalid 😮 I haven't found any documentation on this. Maybe you can point me to it if I missed it or maybe documentation can be improved?
At least it such a stack
+cabal
configj worked with my Cabal build but maybe it doesn't work with Stack. Or maybe something different happened.
It's a pity it's not supported. Unfortunately, having only cabal
cradle isn't an option for me. So this issue can be closed if such a hie.yaml
config is indeed invalid.
from implicit-hie.
The only documentation we have is here: https://github.com/haskell/hie-bios
Essentially, the hie.yaml
documents how you load a project into your IDE, it allows you to specify which tool you want to use, cabal or stack, having both does not make sense in its current interpretation. Then the IDE would still not know what you want to use.
Maybe it is some oddity of the yaml parser... But it will only use one of the two.
It is definitely invalid currently.
from implicit-hie.
Related Issues (20)
- stack cradle does not discover .cabal files if they are deeper than 1 subdirectory HOT 12
- Empty `other-modules` leads to wrong output HOT 3
- Support import-dirs under Cabal flags
- Issues with cabal.project pointing to current directory
- Where does `gen-hie` come from HOT 1
- Confusing parsing behaviour when a list is the last thing in the .cabal file
- error: No prefixes matches for default hie in a simple project HOT 4
- Incorrect parsing of freeform fields HOT 1
- Implicit hie fails to generate the main lib component due to package description
- Modules are sometimes listed explicitly for some reason HOT 4
- Don't generate a Cradle based on .cabal file if cabal version >= 3.4
- Package name not picked up HOT 3
- implicit-hie doesn't recognize foreign-library sections in cabal HOT 1
- Handle local tarballs in `cabal.project`
- Operate on cabal project files not called cabal.project HOT 2
- 0.1.3.0 seems to generate empty `hie.yaml` files for cabal projects HOT 15
- `implicit-hie-cradle` mis-detecting cabal projects as stack projects HOT 1
- Create a subcommand to gen a `hie.yaml` multi cradle to ignore `Setup.hs` to avoid haskell-language-server#3348 HOT 1
- include `gen-hie` binaries with releases? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from implicit-hie.