Skip to content

[Fix #507] New Load Modes for upfront loading of cradle/project#508

Open
Saizan wants to merge 12 commits into
haskell:masterfrom
Saizan:new-loadstyles
Open

[Fix #507] New Load Modes for upfront loading of cradle/project#508
Saizan wants to merge 12 commits into
haskell:masterfrom
Saizan:new-loadstyles

Conversation

@Saizan

@Saizan Saizan commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

PR for #507

Comment thread src/HIE/Bios/Environment.hs Outdated

-- leftovers contains all Targets from the command line
let leftovers = map G.unLoc leftovers' ++ additionalTargets
let leftovers = filter (/= "-unit") (map G.unLoc leftovers') ++ additionalTargets

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@fendor does it make sense that I'd have to filter "-unit" here? Or am I doing something wrong?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't know why you should have to filter the -unit flags out here, that looks incorrect.

We didn't have to do this before, iirc.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Turns out that initSession/addCmdOpts are not setup to handle multiple home units, i guess we should update them? are they used in hls?

@fendor fendor Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No, I think we are using them only for tests these days.

EDIT: addCmdOpts is still used in HLS for initialising a single home unit.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I left addCmdOpts alone. initSession' now uses addCmdOpts if there is no -unit flag, and initMulti otherwise

@Saizan Saizan marked this pull request as ready for review June 17, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants