Skip to content

Explicitly model more dependencies on cradle startup #463

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions src/HIE/Bios/Cradle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
import qualified Data.Conduit as C
import qualified Data.Conduit.Text as C
import qualified Data.HashMap.Strict as Map
import Data.Maybe (fromMaybe)
import Data.Foldable (for_)
import Data.Maybe (fromMaybe, isJust, maybe)

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant

Check warning on line 61 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

The import of ‘maybe’ from module ‘Data.Maybe’ is redundant
import Data.List
import Data.List.Extra (trimEnd, nubOrd)
import Data.Ord (Down(..))
Expand Down Expand Up @@ -155,15 +156,15 @@
-- each prefix we know how to handle
data ResolvedCradles a
= ResolvedCradles
{ cradleRoot :: FilePath

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

Defined but not used: ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’

Check warning on line 159 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

Defined but not used: record field of ResolvedCradles ‘cradleRoot’
, resolvedCradles :: [ResolvedCradle a] -- ^ In order of decreasing specificity

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

Defined but not used: ‘resolvedCradles’

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

Defined but not used:

Check warning on line 160 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

Defined but not used:
, cradleBuildToolVersions :: BuildToolVersions
}

type BuildToolVersions = BuildToolVersions' (Maybe Version)
data BuildToolVersions' v =
BuildToolVersions { cabalVersion :: v
, stackVersion :: v

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

Defined but not used: ‘stackVersion’

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

Defined but not used:

Check warning on line 167 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

Defined but not used:
}
deriving (Functor, Foldable, Traversable)

Expand Down Expand Up @@ -280,7 +281,7 @@


resolveCradleAction :: Show a => LogAction IO (WithSeverity Log) -> (b -> CradleAction a) -> ResolvedCradles b -> FilePath -> ResolvedCradle b -> IO (CradleAction a)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this one can be made pure again, but it needs some other changes first

resolveCradleAction l buildCustomCradle cs root cradle = fmap addLoadStyleLogToCradleAction $

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘cradle’ shadows the existing binding

Check warning on line 284 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘cradle’ shadows the existing binding
case concreteCradle cradle of
ConcreteCabal t -> cabalCradle l cs root (cabalComponent t) (projectConfigFromMaybe root (cabalProjectFile t))
ConcreteStack t -> pure $ stackCradle l root (stackComponent t) (projectConfigFromMaybe root (stackYaml t))
Expand Down Expand Up @@ -479,7 +480,7 @@
, runCradle = biosAction runGhcCmd wdir biosCall biosDepsCall l
, runGhcCmd = runGhcCmd
}
where runGhcCmd = \args -> readProcessWithCwd l wdir (fromMaybe "ghc" mbGhc) args ""

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 483 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

biosWorkDir :: FilePath -> MaybeT IO FilePath
biosWorkDir = findFileUpwards ".hie-bios"
Expand All @@ -506,15 +507,14 @@
-> FilePath
-> LoadStyle
-> IO (CradleLoadResult ComponentOptions)
biosAction runGhcCmd wdir bios bios_deps l fp loadStyle = do

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 510 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding
ghc_version <- getGhcVersion runGhcCmd
determinedLoadStyle <- case ghc_version of
Just ghc
-- Multi-component supported from ghc 9.4
-- We trust the assertion for a bios program, as we have no way of
-- checking its version
| LoadWithContext _ <- loadStyle ->
if ghc >= makeVersion [9,4]
if isCabalMultipleCompSupported Nothing (Just ghc)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can just do pure $ bool LoadFile loadStyle $ isCabalMultipleCompSupported Nothing ghc_version for the whole thing if we don't care about the specific log below.
Alternatively, if we always want it on every check, we can also have a util that does that consistently.

then pure loadStyle
else do
liftIO $ l <& WithSeverity
Expand Down Expand Up @@ -596,10 +596,10 @@
CradleSuccess out -> out
_ -> Nothing

ghcPath = fst <$> cabalPathOutput

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 599 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding
ghcVersion = snd =<< cabalPathOutput

runGhcCmd args = runCradleResultT $ do

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding

Check warning on line 602 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘runGhcCmd’ shadows the existing binding
case ghcPath of
Just p -> readProcessWithCwd_ l wdir p args ""
Nothing -> do
Expand Down Expand Up @@ -630,7 +630,7 @@
-- the custom ghc wrapper may use as a fallback if it can not respond to certain
-- queries, such as ghc version or location of the libdir.
cabalProcess :: LogAction IO (WithSeverity Log) -> CradleProjectConfig -> FilePath -> Maybe FilePath -> String -> [String] -> CradleLoadResultT IO CreateProcess
cabalProcess l cabalProject workDir ghcPath command args = do

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, ubuntu-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.10.1, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, macOS-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.6.7, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.12.2, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.12.2, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.4.8, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.6.7, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.8.4, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.4.8, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.10.2.0, 9.10.1, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding

Check warning on line 633 in src/HIE/Bios/Cradle.hs

View workflow job for this annotation

GitHub Actions / build (3.14.1.0, 9.8.4, windows-latest)

This binding for ‘ghcPath’ shadows the existing binding
ghcDirs@(ghcBin, libdir) <- case ghcPath of
Just p -> do
libdir <- readProcessWithCwd_ l workDir p ["--print-libdir"] ""
Expand Down Expand Up @@ -885,12 +885,11 @@
isCabalPathSupported :: BuildToolVersions -> Bool
isCabalPathSupported = maybe False (>= makeVersion [3,14]) . cabalVersion

isCabalMultipleCompSupported :: BuildToolVersions -> Maybe Version -> Bool
isCabalMultipleCompSupported vs ghcVersion = do
-- determine which load style is supported by this cabal cradle.
case (cabalVersion vs, ghcVersion) of
(Just cabal, Just ghc) -> ghc >= makeVersion [9, 4] && cabal >= makeVersion [3, 11]
_ -> False
isCabalMultipleCompSupported :: Maybe BuildToolVersions -> Maybe Version -> Bool
isCabalMultipleCompSupported mvs ghcVersion = isJust $ do
let atLeast v = guard . maybe False (makeVersion v <=)
atLeast [9,4] ghcVersion
for_ mvs $ \vs -> atLeast [3,11] $ cabalVersion vs -- Only gate on cabal version if known

cabalAction
:: ResolvedCradles a
Expand All @@ -904,7 +903,7 @@
-> LoadStyle
-> CradleLoadResultT IO ComponentOptions
cabalAction (ResolvedCradles root cs vs) workDir ghcPath ghcVersion mc l projectFile fp loadStyle = do
let multiCompSupport = isCabalMultipleCompSupported vs ghcVersion
let multiCompSupport = isCabalMultipleCompSupported (Just vs) ghcVersion
-- determine which load style is supported by this cabal cradle.
determinedLoadStyle <- case loadStyle of
LoadWithContext _ | not multiCompSupport -> do
Expand Down
2 changes: 1 addition & 1 deletion tests/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ isCabalMultipleCompSupported' = do
root <- askRoot
versions <- liftIO $ makeVersions (cradleLogger cr) root
v <- liftIO $ getGhcVersion ((runGhcCmd . cradleOptsProg) cr)
pure $ isCabalMultipleCompSupported versions v
pure $ isCabalMultipleCompSupported (Just versions) v

inCradleRootDir :: TestM a -> TestM a
inCradleRootDir act = do
Expand Down
Loading