Last active
February 5, 2019 06:31
-
-
Save subhodi/836dde2785a4bf53a02d618d674248fc to your computer and use it in GitHub Desktop.
run Stylish-haskell
This file contains 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
#!/bin/bash | |
sudo apt-get -y install stylish-haskell | |
echo "\n Current working directory $PWD/src \n" | |
FILE="$(find ./src/ -name '*.hs')" | |
for file in $FILE | |
do | |
echo "Processing "$file | |
echo "$(stylish-haskell $file)" > $file | |
done | |
echo "done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bash <(curl -s https://gist.githubusercontent.com/subhodi/836dde2785a4bf53a02d618d674248fc/raw/2f6438adb007a810362686dbe23e4173f6e13769/beautify-hs.sh)