Comments (2)
You might be interested in the feature haskell/hie-bios#357
With that feature, it'd be enough to have a hie.yaml
:
cradle:
cabal:
project-file: cabal.project.8.8.4
and stuff like that.
Leave a comment if you think that feature would help you.
from implicit-hie.
It wouldn't, surprisingly. Long story, marred by my own cursed workflows on top of a codebase that needs to be weird to be usable.
The reason is that there's overlapping cabal targets in the work project due to test-dev (https://jade.fyi/blog/cabal-test-dev-trick/). This is used to paper over multiple home units' absence on a codebase that is extremely marginal HLS perf wise (Well-Typed has worked on it specifically in the past) by sticking test and lib into one cabal target. So I need to delete some of those rules and thus a manual hie.yaml is necessary.
The thing I use gen-hie for is when I'm doing hacks (see "yolo method" of https://jade.fyi/blog/nix-hls-for-deps/) to work on dependencies in-situ, replacing the nix versions, and don't want to write the hie.yaml rules for the stuff I just added by hand. So I run it and copy the appropriate prefix rules for the dependency I just stuck into nix-shell.cabal.project.local
N.B. the reason there are two cabal project files is that the not nix-shell one has source-repository-package to make git deps build on non nix systems.
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
- Support both --stack and --cabal at the same time HOT 4
- Handle local tarballs in `cabal.project`
- 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.