Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

replace usages of NormalizedFilePath with NormalizedUri wherever possible#4622

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
MangoIV wants to merge5 commits intohaskell:master
base:master
Choose a base branch
Loading
fromMangoIV:mangoiv/uri

Conversation

MangoIV
Copy link
Contributor

This is useful for being to run haskell-language-server against URIs that are not file URIs.

I am not sure about all the places and there's one more change that I will probably have to do to run HLS over websocket.

soulomoon and ahndmal reacted with rocket emoji
@MangoIVMangoIV changed the title[feat] replace usages of NormalizedFilePath with NormalizedUri wherever possible[featURE] replace usages of NormalizedFilePath with NormalizedUri wherever possibleJun 8, 2025
@MangoIV
Copy link
ContributorAuthor

oh no already three conflicts 😭

@MangoIVMangoIVforce-pushed themangoiv/uri branch 2 times, most recently from5552c2f to26c5db8CompareJuly 15, 2025 20:38
Comment on lines -268 to +275
--| Runs the action until it ends or until the given MVar is put.
--| Runs the action until it ends or until the given MVar is put or the thread to fill the mvar is dropped, in which case the MVar will never be filled.
-- This happens when the thread that handles the shutdown notification dies. Ideally, this should not rely on the RTS detecting the blocked MVar
-- and instead *also* run the shutdown inf a finally block enclosing the handlers. In which case the BlockedIndefinitelyOnMVar Exception also wouldn't
-- be thrown.
-- Rethrows any exceptions.
untilMVar::MonadUnliftIOm=>MVar()->m()->m()
untilMVar mvar io= void$
waitAnyCancel=<<traverse async [ io , readMVar mvar ]
untilMVar mvar io= race_ (readMVar mvar`catch`\BlockedIndefinitelyOnMVar->pure()) io
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

this bit is interesting for a reviewer

@MangoIVMangoIV changed the title[featURE] replace usages of NormalizedFilePath with NormalizedUri wherever possiblereplace usages of NormalizedFilePath with NormalizedUri wherever possibleJul 15, 2025
This is the right thing to do because othewise it is not possible tocreate new ideStates in a single instance of the executable. This willbe useful if the hls executable is supposed to talk to multiple clientsand lives beyond a single client disconnecting.
Previously, when there was no shutdown message by a client and theclient disconnected, resulting in the handlers to be GC'd the race thatwas supposed to free resources for the HieDB & co. would throw a harderror talking about the MVar being unreachable. We would like to insteadfinish gracefully because finishing the race as soon as the MVar wasGC'd is the right thing to do anyway.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@michaelpjmichaelpjAwaiting requested review from michaelpjmichaelpj will be requested when the pull request is marked ready for reviewmichaelpj is a code owner

@0rphee0rpheeAwaiting requested review from 0rphee0rphee will be requested when the pull request is marked ready for review0rphee is a code owner

@soulomoonsoulomoonAwaiting requested review from soulomoonsoulomoon will be requested when the pull request is marked ready for reviewsoulomoon is a code owner

@santiweightsantiweightAwaiting requested review from santiweightsantiweight will be requested when the pull request is marked ready for reviewsantiweight is a code owner

@eddiemundoeddiemundoAwaiting requested review from eddiemundoeddiemundo will be requested when the pull request is marked ready for revieweddiemundo is a code owner

@joyfulmantisjoyfulmantisAwaiting requested review from joyfulmantisjoyfulmantis will be requested when the pull request is marked ready for reviewjoyfulmantis is a code owner

@georgefstgeorgefstAwaiting requested review from georgefstgeorgefst will be requested when the pull request is marked ready for reviewgeorgefst is a code owner

@jvanbrueggejvanbrueggeAwaiting requested review from jvanbrueggejvanbruegge will be requested when the pull request is marked ready for reviewjvanbruegge is a code owner

@July541July541Awaiting requested review from July541July541 will be requested when the pull request is marked ready for reviewJuly541 is a code owner

@ozkutukozkutukAwaiting requested review from ozkutukozkutuk will be requested when the pull request is marked ready for reviewozkutuk is a code owner

@kokobdkokobdAwaiting requested review from kokobdkokobd will be requested when the pull request is marked ready for reviewkokobd is a code owner

@fendorfendorAwaiting requested review from fendorfendor will be requested when the pull request is marked ready for reviewfendor is a code owner

@VeryMilkyJoeVeryMilkyJoeAwaiting requested review from VeryMilkyJoeVeryMilkyJoe will be requested when the pull request is marked ready for reviewVeryMilkyJoe is a code owner

@drsoochdrsoochAwaiting requested review from drsoochdrsooch will be requested when the pull request is marked ready for reviewdrsooch is a code owner

@wz1000wz1000Awaiting requested review from wz1000wz1000 will be requested when the pull request is marked ready for reviewwz1000 is a code owner

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@MangoIV

[8]ページ先頭

©2009-2025 Movatter.jp