Skip to content

Instantly share code, notes, and snippets.

@freeman42x
Last active August 21, 2019 05:11
Show Gist options
  • Save freeman42x/6895e15d89486e966d6ce2a4ae63d279 to your computer and use it in GitHub Desktop.
Save freeman42x/6895e15d89486e966d6ce2a4ae63d279 to your computer and use it in GitHub Desktop.
Haskell Turtle - getting Text output from inshellWithErr
myFunction :: Shell ()
myFunction = do
out <- inshellWithErr "stack build" empty
liftIO $ putStr (lineToText (bifold out))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment