Replies: 1 comment 3 replies
-
(I'm converting this to Q&A for now, since the action item is not clear).
Could you please provide a repro for this? I wish to start from the concrete problem. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I had a long standing issue being unable to compile my cabal project with haskell-flake.
EDIT: the rest of this post is irrelevant, see this comment for the up-to date description.
Outdated description
After some trial and error, I discovered that haskell-flake requires the `fileset` option to include the project's cabal file, like in the template:https://github.com/srid/haskell-template/blob/807aae5c6e6dc502415a60ecf9bb48ae09b0e1f8/nix/modules/flake/haskell.nix#L17
If the cabal file is not in it (or
fileset
is not set at all), haskell-flake seems to fail to discover the dependencies from cabal file. It also seems to ignore what I put inhaskellProjects.default.packages
when cabal file is not infileset
.Given how critical
fileset
is to get right, could we do the following:Document it in https://community.flake.parts/haskell-flake as well as feature it in the README example. Ideally, it should be somewhere one can't miss it.
Even though it is documented by example in the template that is provided, this does not clearly define the option's semantics. Also, the current documentation does not suit users who may not be using the template, there's simply no way they can discover that this mandatory option exists.
Issue a warning or error when cabal file is ignored due to not being included in
fileset
. I don't know which of the two is more appropriate, but I feel that quietly ignoring a situation where user is likely to be misunderstanding what is going on is suboptimal.I could draft a documentation PR for 1 if someone tells me what is the semantics of
fileset
and cabal file being in it (and whether my guess above is correct).Ivan
Beta Was this translation helpful? Give feedback.
All reactions