Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does haskell-ci support package.yaml? #248

Closed
hanjoosten opened this issue Mar 8, 2019 · 5 comments
Closed

Does haskell-ci support package.yaml? #248

hanjoosten opened this issue Mar 8, 2019 · 5 comments

Comments

@hanjoosten
Copy link

In our project, we use hpack to generate a .cabal file from our package.yaml file. I would love to use haskell-ci to generate a .travis-ci file. In the documentation I see no clues on how to do that. Is this supported?

@hvr
Copy link
Member

hvr commented Mar 8, 2019

We don't really support .cabal file preprocessors as those wouldn't be supported by cabal either (and it's unlikely cabal will have support for it any time soon due to the engineering cost of doing this correctly as it's very tricky getting this right as well as avoiding significant performance/latency penalties; instead we're focusing on improving the .cabal format to reduce the incentive for wanting to use .cabal preprocessors in the first place).

So I'd think you'd already run into problems with cabal if you don't have already a means to materialize the .cabal files before invoking cabal v2-build, as cabal.project would be referring to packages not having their .cabal files synthesized. And you'd also cause problems for cabal users who want to depend directly on your Git repository via cabal's source-repository-package who wouldn't be able to do so if the .cabal file is missing in the Git repo.

@hanjoosten
Copy link
Author

The reason we use hpack is that we have a large (and frequently changing) set of datafiles that we want to come with the library. At least some time ago wildcards weren't supported for data files in .cabal files.

@hanjoosten
Copy link
Author

Ah, I see that from cabal 2.4, this is supported.

@hvr
Copy link
Member

hvr commented Mar 8, 2019

@hanjoosten
Copy link
Author

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants