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

Writing output results in parse error #3

Closed
bokesan opened this issue May 29, 2016 · 3 comments
Closed

Writing output results in parse error #3

bokesan opened this issue May 29, 2016 · 3 comments
Assignees

Comments

@bokesan
Copy link

bokesan commented May 29, 2016

Parsing the output from forked processes fails when you do output yourself, e.g.:

main = do putStrLn "Hello!"
          mainWith (do ...

will fail with

program: Prelude.read: no parse

I don't think that this necessarily needs to be fixed, but it certainly should be documented.

@chrisdone
Copy link
Contributor

chrisdone commented May 29, 2016

Perhaps a cheap solution is to write the output to a temp file, rather than communicate via pipe.

@chrisdone
Copy link
Contributor

I put in a more descriptive error message for now.

@chrisdone
Copy link
Contributor

I changed it to write to a temporary file instead in 0.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants