Skip to content
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

concur-sdl doesn't work #18

Open
potocpav opened this issue Jul 17, 2019 · 3 comments
Open

concur-sdl doesn't work #18

potocpav opened this issue Jul 17, 2019 · 3 comments
Assignees

Comments

@potocpav
Copy link

I want to experiment with native back-ends for Concur, and I wanted to use the simple concur-sdl as a basis for my experiments. However, after stack build and stack run, it crashes with this rather unhelpful message:

concur-sdl-example: thread blocked indefinitely in an STM transaction

Could you point me to what might be wrong?

PS: Thanks for this library. I used the Purescript variant for a internal web page with great success - that's why I'm now looking to use concur in native tools too (it could be great as an alternative to ImGui).

@ajnsit
Copy link
Owner

ajnsit commented Jul 17, 2019

@potocpav I haven't worked with this code in a while, and I expect it's bitrotten. I'll look at this and get back to you.

I'm glad you had a good experience with Purescript-Concur. I would be happy to help answer questions or help you figure out how to implement some of your usecases with the lib.

@ajnsit ajnsit self-assigned this Jul 17, 2019
@potocpav
Copy link
Author

I don't have a specific question right now. I figured that understanding concur-core well enough to fix this issue may take me a long time, while it may be a trivial fix for you. If it's not, or you don't want to spend time with it, I will just try to power through.

Alternatively, concur-brick may also be a nice starting point, but it doesn't work either:

Variable not in scope:
          runIO
            :: SuspendF [Image] (Free (Suspend [Image]) b) -> Maybe (IO ())

@ajnsit
Copy link
Owner

ajnsit commented Jul 18, 2019

Concur-brick was never finished, it’s more of a placeholder. For Concur-sdl it’s not a trivial fix, but I will take care of it sometime this week, since it’s such a small codebase and it would be nice to have a desktop example for concur.

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

No branches or pull requests

2 participants