As far as I can see, both local.toCurrentProject and local.toDefinedProject call the same function, only at different times. But I don’t seem to wrap my head around when toDefinedProject must be true.
In my observation, it is true when a haskell package gets its source from inputs but it is not from cabal.project (which makes it non-local).
when would this information be useful?
Maybe now I get it, toDefinedProject is true if a project that you are importing is also defined using haskell-flake.
@Shivaraj B H They are described in the option docs here
(But they are not visible in https://flake.parts/options/haskell-flake due to https://github.com/srid/haskell-flake/issues/272 )
Srid said:
Shivaraj B H They are described in the option docs here
Feel free to improve the description if you think that will be more clear.
Last updated: Nov 11 2025 at 16:24 UTC