Stream: haskell-flake

Topic: what is `toDefinedProject`?


view this post on Zulip Shivaraj B H (Mar 13 2024 at 13:13):

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).

view this post on Zulip Shivaraj B H (Mar 13 2024 at 13:14):

when would this information be useful?

view this post on Zulip Shivaraj B H (Mar 13 2024 at 14:04):

Maybe now I get it, toDefinedProject is true if a project that you are importing is also defined using haskell-flake.

view this post on Zulip Srid (Mar 13 2024 at 14:37):

@Shivaraj B H They are described in the option docs here

view this post on Zulip Srid (Mar 13 2024 at 14:37):

(But they are not visible in https://flake.parts/options/haskell-flake due to https://github.com/srid/haskell-flake/issues/272 )

view this post on Zulip Srid (Mar 13 2024 at 14:38):

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: Sep 16 2024 at 20:16 UTC