Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Last active November 10, 2016 21:58
Show Gist options
  • Save chris-martin/6ffd7a54c9d70f1a8803563014e84af7 to your computer and use it in GitHub Desktop.
Save chris-martin/6ffd7a54c9d70f1a8803563014e84af7 to your computer and use it in GitHub Desktop.
why does ghci.conf affect how `stack eval` works
FILE_NAME="README.md"
FOO=$(stack --silent eval "readFile \"$FILE_NAME\" >>= putStrLn . head . lines")
echo "$FOO"
> bash hask.sh
readme contents
it :: ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment