Last active
November 10, 2016 21:58
-
-
Save chris-martin/6ffd7a54c9d70f1a8803563014e84af7 to your computer and use it in GitHub Desktop.
why does ghci.conf affect how `stack eval` works
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:set +t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE_NAME="README.md" | |
FOO=$(stack --silent eval "readFile \"$FILE_NAME\" >>= putStrLn . head . lines") | |
echo "$FOO" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> bash hask.sh | |
readme contents | |
it :: () |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment