Skip to content

Instantly share code, notes, and snippets.

@subhodi
Last active February 5, 2019 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subhodi/836dde2785a4bf53a02d618d674248fc to your computer and use it in GitHub Desktop.
Save subhodi/836dde2785a4bf53a02d618d674248fc to your computer and use it in GitHub Desktop.
run Stylish-haskell
#!/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