/ghc-exactprint

GHC version of haskell-src-exts exactPrint

Primary LanguageHaskellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

ghc-exactprint

Available on Hackage License BSD3 Build Status

GHC version of haskell-src-exts exactPrint

Note: This only works with GHC 7.10.2 and beyond. As of now (2015-06-03) GHC 7.10.2 is not yet released

Building with stack

Requires stack Version 0.1.1.0, Git revision 91fe70306f51eb3d68667a0d6e09a7d7ebbeb2b6 or later

GHC 7.10.2 (rc2 and later)

Ensure the right GHC is on your path using https://github.com/spl/multi-ghc

ghc-config 7.10.1.20150619

Build, test

stack build
stack test

GHC 7.11.20150621 and later

Ensure the right GHC is on your path using https://github.com/spl/multi-ghc

ghc-config 7.11.20150621

Build, test

stack --skip-ghc-check --stack-yaml stack-7.11.yaml build
stack --skip-ghc-check --stack-yaml stack-7.11.yaml test

Current Limitations

  • Does not process CPP properly [should be sorted soon]
  • Does not process Lhs files properly
  • Does not properly process multi-line strings in WARNING and DEPRECATED pragmas [ see https://phabricator.haskell.org/D907 which missed the cut for 7.10.2 due to AST change ]
  • Does not preserve the unicode * character, reducing it to a standard one.