Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

One shot invocation #158

Merged
merged 3 commits into from
Jan 5, 2016
Merged

One shot invocation #158

merged 3 commits into from
Jan 5, 2016

Conversation

alanz
Copy link
Collaborator

@alanz alanz commented Jan 4, 2016

Invoking hie with the --one-shot flag in JSON/stdio mode will process one command only and then exit

alanz added 2 commits January 4, 2016 20:28
The reply process is now the main one, so hie only exits when it is
done.
@alanz
Copy link
Collaborator Author

alanz commented Jan 4, 2016

Close #154

if oneShot
then return ()
else
parseToJsonPipe False
Copy link
Contributor

Choose a reason for hiding this comment

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

could be when oneShot $ parseToJsonPipe False cin cout (cid + 1)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn’t that be unless instead of when?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, sorry

@glittershark
Copy link
Contributor

hope you don't mind me piping up 😄

cocreature added a commit that referenced this pull request Jan 5, 2016
@cocreature cocreature merged commit 060a165 into haskell:master Jan 5, 2016
@alanz alanz deleted the one-shot branch November 24, 2017 16:02
@alanz alanz added this to the prehistory milestone Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants