{"action":"created","issue":{"url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/121","labels_url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/121/comments","events_url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/121/events","html_url":"https://github.com/Gabriel439/Haskell-Turtle-Library/issues/121","id":115192449,"number":121,"title":"-e equivalent?","user":{"login":"mitchellwrosen","id":1074598,"avatar_url":"https://avatars.githubusercontent.com/u/1074598?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellwrosen","html_url":"https://github.com/mitchellwrosen","followers_url":"https://api.github.com/users/mitchellwrosen/followers","following_url":"https://api.github.com/users/mitchellwrosen/following{/other_user}","gists_url":"https://api.github.com/users/mitchellwrosen/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellwrosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellwrosen/subscriptions","organizations_url":"https://api.github.com/users/mitchellwrosen/orgs","repos_url":"https://api.github.com/users/mitchellwrosen/repos","events_url":"https://api.github.com/users/mitchellwrosen/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellwrosen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-05T01:58:08Z","updated_at":"2015-11-05T18:52:17Z","closed_at":null,"body":"Is there a way to get `-e`-like semantics with `turtle`? If not, what about something like\r\n\r\n```\r\nshell' :: MonadIO m => Text -> Shell Text -> m ()\r\nshell' cmd input = \r\n    result <- shell cmd input\r\n    case result of\r\n        ExitFailure n -> die (cmd <> \": \" <> T.pack n)\r\n        ExitSuccess -> pure ()\r\n```"},"comment":{"url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/comments/154151277","html_url":"https://github.com/Gabriel439/Haskell-Turtle-Library/issues/121#issuecomment-154151277","issue_url":"https://api.github.com/repos/Gabriel439/Haskell-Turtle-Library/issues/121","id":154151277,"user":{"login":"Gabriel439","id":1313787,"avatar_url":"https://avatars.githubusercontent.com/u/1313787?v=3","gravatar_id":"","url":"https://api.github.com/users/Gabriel439","html_url":"https://github.com/Gabriel439","followers_url":"https://api.github.com/users/Gabriel439/followers","following_url":"https://api.github.com/users/Gabriel439/following{/other_user}","gists_url":"https://api.github.com/users/Gabriel439/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabriel439/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabriel439/subscriptions","organizations_url":"https://api.github.com/users/Gabriel439/orgs","repos_url":"https://api.github.com/users/Gabriel439/repos","events_url":"https://api.github.com/users/Gabriel439/events{/privacy}","received_events_url":"https://api.github.com/users/Gabriel439/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T18:52:17Z","updated_at":"2015-11-05T18:52:17Z","body":"You could do this, but then you would no longer be able to run `proc`/`shell` commands as ordinary `IO` commands"}}