-
Notifications
You must be signed in to change notification settings - Fork 26
Description
I had a long standing issue being unable to compile my cabal project with haskell-flake.
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:
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 in haskellProjects.default.packages when cabal file is not in fileset.
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