Comment on Use Haskell for shell scriptingparentComments−kenko11yWhy `Either Text Text`? What if you're interested in both stdout and stderr?−Gabriel43911yThen you can do this: fmap (either id id) (both ...) ... which is equivalent to: x <- both ... return (case x of Left txt -> txt Right txt -> txt) That removes the `Either` tag and fuses them into a single stream.
Comments
Why `Either Text Text`? What if you're interested in both stdout and stderr?
Then you can do this:
... which is equivalent to: That removes the `Either` tag and fuses them into a single stream.