You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[HLS project configuration guidelines](../configuration.md#configuring-your-project-build) also apply to the HLS project itself.
116
+
Project source code should load without `hie.yaml` setup.
117
+
118
+
In other cases:
119
+
120
+
1. Check if `hie.yaml` (& `hie.yml`) files left from previous configurations.
121
+
122
+
2. If the main project needs special configuration, note that other internal subprojects probably also would need configuration.
123
+
124
+
To create an explicit configuration for all projects - use [implicit-hie](https://github.com/Avi-D-coder/implicit-hie) generator directly:
125
+
126
+
```shell
127
+
gen-hie > hie.yaml # into the main HLS directory
128
+
```
129
+
130
+
that configuration should help.
131
+
132
+
3. Inspect & tune it explicit configuration.
133
+
134
+
[Configuring project build](../configuration.md#configuring-your-project-build) applies to HLS project source code loading just as to any other.
135
+
136
+
Note: HLS may implicitly codebase as a Stack project (see [hie-bios implicit configuration documentation](https://github.com/haskell/hie-bios/blob/master/README.md#implicit-configuration)).
137
+
138
+
To use Cabal, try creating an `hie.yaml` file:
117
139
118
-
Note: HLS implicitly detects HLS codebase as a Stack project (see [hie-bios implicit configuration documentation](https://github.com/haskell/hie-bios/blob/master/README.md#implicit-configuration)).
119
-
If you want HLS to use Cabal, you need to create an `hie.yaml` file:
120
140
```yaml
121
141
cradle:
122
142
cabal:
123
143
```
124
144
125
-
Also note that the `install/` subdirectory is a different project, so if you want to work on this part of the code, you may also have to create an `install/hie.yaml` file.
126
145
127
146
### Manually testing your hacked HLS
128
147
If you want to test HLS while hacking on it, follow the steps below.
0 commit comments