|
3 | 3 | cd your-stack-or-cabal-package
|
4 | 4 | gen-hie
|
5 | 5 | ```
|
| 6 | +`gen-hie` should be run the root of a cabal or stack project. |
| 7 | +The config type (cabal or stack) is determined by the existence of |
| 8 | +`dist-newstyle`, `.stack-work`, `stack.yaml`, if none are found the default is cabal. |
| 9 | + |
| 10 | +# Cabal Multi project example |
| 11 | +```bash |
| 12 | +❯ git clone https://github.com/well-typed/optics.git |
| 13 | +❯ cd optics |
| 14 | +❯ gen-hie |
| 15 | +wrote Cabal /home/user/optics/indexed-profunctors/hie.yaml |
| 16 | +wrote Cabal /home/user/optics/optics-th/hie.yaml |
| 17 | +wrote Cabal /home/user/optics/optics-vl/hie.yaml |
| 18 | +wrote Cabal /home/user/optics/codegen/hie.yaml |
| 19 | +wrote Cabal /home/user/optics/optics-core/hie.yaml |
| 20 | +wrote Cabal /home/user/optics/optics-sop/hie.yaml |
| 21 | +wrote Cabal /home/user/optics/optics-extra/hie.yaml |
| 22 | +wrote Cabal /home/user/optics/template-haskell-optics/hie.yaml |
| 23 | +wrote Cabal /home/user/optics/optics/hie.yaml |
| 24 | +wrote Cabal /home/user/optics/metametapost/hie.yaml |
| 25 | +``` |
| 26 | + |
| 27 | +## Features |
| 28 | + |
| 29 | +All common Cabal and Stack configurations should just work. |
| 30 | +If you use more advanced features, the generated config may not be complete. |
| 31 | + |
| 32 | +- [x] multi component cabal, stack projects |
| 33 | +- [x] multiple executables under a single path |
| 34 | +- [ ] multiple paths provided to `hs-source-dirs` |
| 35 | +- [ ] common stanzas |
| 36 | + |
| 37 | +### Sponsorship, Work, Twitter |
| 38 | +- If you value my contributions to Haskell tooling, FP oriented GC, or open source FP in general, please consider sponsoring me via Github. |
| 39 | +- I'm currently looking for work as a Haskell or Rust developer. I can be reached via email or a twitter message. |
| 40 | +- Follow me on twitter [@AviDessauer](https://twitter.com/AviDessauer). |
0 commit comments