Skip to content

Instantly share code, notes, and snippets.

@suhailshergill
Created July 21, 2012 16:12
Show Gist options
  • Save suhailshergill/3156289 to your computer and use it in GitHub Desktop.
Save suhailshergill/3156289 to your computer and use it in GitHub Desktop.
haskell-src-exts eg: convert indented code into semi-colon layout
import Language.Haskell.Exts
main = putStr . prettyPrintWithMode (defaultMode {layout = PPSemiColon})
. fromParseResult . parseFileContents =<< getContents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment