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

Add sample hie.yaml files for stack and cabal #1533

Merged
merged 3 commits into from
Jan 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,4 @@ shake.yaml.lock

# ignore hie.yaml's for testdata
test/**/*.yaml
/hie.yaml
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,15 @@ This project is not started from scratch:
- Fork this repo and hack as much as you can.
- Ask @alanz or @hvr to join the project.

### Hacking on haskell-ide-engine

Haskell-ide-engine can be used on its own project. We have supplied
preset samples of `hie.yaml` files for stack and cabal, simply copy
the appropriate template to `hie.yaml` and it shoule work.

- `hie.yaml.cbl` for cabal
- `hie.yaml.stack` for stack

## Documentation

All the documentation is in [the docs folder](/docs) at the root of this project.
Expand Down
35 changes: 35 additions & 0 deletions hie.yaml.cbl
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This is a sample hie.yaml file for opening haskell-ide-engine in
# hie, using cabal as the build system.
# To use is, copy it to a file called 'hie.yaml'

cradle:
cabal:
- path: "./hie-plugin-api/Haskell"
component: "lib:hie-plugin-api"

- path: "./test/dispatcher/"
component: "haskell-ide-engine:dispatcher-test"

- path: "./test/functional/"
component: "haskell-ide-engine:func-test"

- path: "./test/unit/"
component: "haskell-ide-engine:unit-test"

- path: "./test/plugin-dispatcher/"
component: "haskell-ide-engine:plugin-dispatcher-test"

- path: "./test/wrapper/"
component: "haskell-ide-engine:wrapper-test"

- path: "./test/utils/"
component: "haskell-ide-engine:hie-test-utils"

- path: "./app/MainHie.hs"
component: "haskell-ide-engine:hie"

- path: "./app/HieWrapper.hs"
component: "haskell-ide-engine:hie-wrapper"

- path: "./"
component: "lib:haskell-ide-engine"
36 changes: 36 additions & 0 deletions hie.yaml.stack
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a sample hie.yaml file for opening haskell-ide-engine in
# hie, using stack as the build system.
# To use is, copy it to a file called 'hie.yaml'

cradle:
stack:
- path: "./hie-plugin-api/"
component: "hie-plugin-api:lib"

- path: "./test/dispatcher/"
component: "haskell-ide-engine:test:dispatcher-test"

- path: "./test/functional/"
component: "haskell-ide-engine:test:func-test"

- path: "./test/unit/"
component: "haskell-ide-engine:test:unit-test"

- path: "./test/plugin-dispatcher/"
component: "haskell-ide-engine:test:plugin-dispatcher-test"

- path: "./test/wrapper/"
component: "haskell-ide-engine:test:wrapper-test"

# This target does not currently work (stack 2.1.3)
- path: "./test/utils/"
component: "haskell-ide-engine:lib:hie-test-utils"
alanz marked this conversation as resolved.
Show resolved Hide resolved

- path: "./app/MainHie.hs"
component: "haskell-ide-engine:exe:hie"

- path: "./app/HieWrapper.hs"
component: "haskell-ide-engine:exe:hie-wrapper"

- path: "./"
component: "haskell-ide-engine:lib"