-
Notifications
You must be signed in to change notification settings - Fork 66
Closed
Description
It seems like it should be possible in most cases to auto generate hie.yaml
files given only cradle type. This would also remove the need for hie.yaml
most of the time.
A .hie-bios.yaml in lowest parent directory could be used to determine
stack, or
cabal, if
.stack-workxor
dist-newstylexor
hie-bios` is not detected first.
We could start by looking in *.cabal
for executable
, library
, test-suite
, then any main-is
and hs-source-dirs
.
Caveats:
- If you are using stack with hpack, you need to invoke stack build before we can build an implicit config.
- In the event we observe multiple
main-is
orhs-source-dirs
in a single module. Can we duplicate the cradle with the same name, but a different path?
if os(linux)
hs-source-dirs: linux
if os(darwin)
hs-source-dirs: osx
if os(windows)
hs-source-dirs: win
cabal-helper
could be used, but it's a heavy dependency for such a simple task.
Thoughts? I would implement this feature.
Update
Metadata
Metadata
Assignees
Labels
No labels