Closed locallycompact closed 1 year ago
I've only ever put the package.dhall
in the folder where I want to generate the cabal file. Can you write it there temporarily? It doesn't have to be named package.yaml
.
Another thing if using dhall-hpack-cabal
is you can import another *.dhall
file from pretty much anywhere.
Actually maybe I can put it there temporarily actually, might be overthinking this.
I'd have to check but I'm pretty sure that some of hpack features like module discovery rely on relative locality in the filesystem.
Oh of course, it must do. Thanks.
I'm dealing with a situation where the dhall is coming from nowhere in particular, but the cabal file needs to be put in a particular directory. Does hpack even allow this? I know it can output to stdout.