pretty-haskell Place .stylish-haskell.yaml in your home directory. Place prettify-hs.shi in some place available in your PATH, for example, in ~/.local/bin. Go to your source code directory and run prettify-hs. There's no step 4. ;-)