Skip to content

Instantly share code, notes, and snippets.

@sras
Created April 6, 2017 15:03
Show Gist options
  • Save sras/8cd8baad60090123abec35fb612f0ea6 to your computer and use it in GitHub Desktop.
Save sras/8cd8baad60090123abec35fb612f0ea6 to your computer and use it in GitHub Desktop.
Redirect output and errors of ghci to files and stdout at the same time
stack ghci > >(tee stdout.log) 2> >(tee stderr.log >&2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment