项目
在 GitHub 查看
Avi-D-coder/implicit-hie
关于
Auto generate a stack or cabal multi component hie.yaml file
开发工具可以做什么
- multi component cabal, stack projects
- multiple executables under a single path
- multiple paths provided to hs-source-dirs
- lookup nested packages in cabal.project or stack.yaml
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文implicit-hie
cd your-stack-or-cabal-package
stack install implicit-hie # or cabal install implicit-hie
gen-hie > hie.yaml
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.
You can use --cabal, or --stack options to override config type.
Cabal Multi project example
❯ git clone https://github.com/well-typed/optics.git
❯ cd optics
❯ gen-hie
cradle:
cabal:
- path: "indexed-profunctors/src"
component: "lib:indexed-profunctors"
- path: "optics-th/src"
component: "lib:optics-th"
- path: "optics-th/tests"
component: "optics-th:test:optics-th-tests"
- path: "optics-vl/src"
component: "lib:optics-vl"
- path: "codegen/./Subtypes.hs"
component: "optics-codegen:exe:optics-codegen-subtypes"
- path: "optics-core/src"
component: "lib:optics-core"
- path: "optics-sop/src"
component: "lib:optics-sop"
- path: "optics-extra/src"
component: "lib:optics-extra"
- path: "template-haskell-optics/src"
component: "lib:template-haskell-optics"
- path: "optics/src"
component: "lib:optics"
- path: "optics/tests"
component: "optics:test:optics-tests"
- path: "metametapost/src/Cli.hs"
component: "metametapost:exe:metametapost-optics"
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 - lookup nested packages in
cabal.projectorstack.yaml - Handle Exe and Bench
other-modules - common stanzas
Work, Twitter
- Follow me on twitter @AviDessauer.
探索相关项目
加载中…