Auto generate a stack or cabal multi component hie.yaml file
Go to file
2020-05-04 15:52:56 -04:00
app Print project type 2020-05-04 15:36:23 -04:00
src/Hie Commit new tests + refactor 2020-05-04 01:36:16 -04:00
test Commit new tests + refactor 2020-05-04 01:36:16 -04:00
.gitignore Init 2020-04-23 20:48:49 -04:00
ChangeLog.md Init 2020-04-23 20:48:49 -04:00
codex.tags tests 2020-04-26 02:35:53 -04:00
hie.yaml Fix cabal + named libraries 2020-05-04 01:19:16 -04:00
implicit-hie.cabal output to stdout 2020-04-30 20:59:13 -04:00
LICENSE Init 2020-04-23 20:48:49 -04:00
package.yaml output to stdout 2020-04-30 20:59:13 -04:00
README.md Update README 2020-05-04 15:52:56 -04:00
Setup.hs Init 2020-04-23 20:48:49 -04:00
stack.yaml Init 2020-04-23 20:48:49 -04:00
stack.yaml.lock Init 2020-04-23 20:48:49 -04:00

implicit-hie

cd your-stack-or-cabal-package
gen-hie

gen-hie should be run the root of a cabal or stack project. The config type (cabal or stack) is determined by the existence of dist-newstyle, .stack-work, stack.yaml, if none are found the default is cabal.

Cabal Multi project example

 git clone https://github.com/well-typed/optics.git
 cd optics
 gen-hie
wrote Cabal /home/user/optics/indexed-profunctors/hie.yaml
wrote Cabal /home/user/optics/optics-th/hie.yaml
wrote Cabal /home/user/optics/optics-vl/hie.yaml
wrote Cabal /home/user/optics/codegen/hie.yaml
wrote Cabal /home/user/optics/optics-core/hie.yaml
wrote Cabal /home/user/optics/optics-sop/hie.yaml
wrote Cabal /home/user/optics/optics-extra/hie.yaml
wrote Cabal /home/user/optics/template-haskell-optics/hie.yaml
wrote Cabal /home/user/optics/optics/hie.yaml
wrote Cabal /home/user/optics/metametapost/hie.yaml

Features

All common Cabal and Stack configurations should just work. If you use more advanced features, the generated config may not be complete.

  • multi component cabal, stack projects
  • multiple executables under a single path
  • multiple paths provided to hs-source-dirs
  • common stanzas

Sponsorship, Work, Twitter

  • If you value my contributions to Haskell tooling, FP oriented GC, or open source FP in general, please consider sponsoring me via Github.
  • I'm currently looking for work as a Haskell or Rust developer. I can be reached via email or a twitter message.
  • Follow me on twitter @AviDessauer.