ghc-exactprint icon indicating copy to clipboard operation
ghc-exactprint copied to clipboard

GHC version of haskell-src-exts exactPrint

Results 33 ghc-exactprint issues
Sort by recently updated
recently updated
newest added

I'm having a go at using exactprint to add an explicit export list for a module. So starting from something without an explicit export list, I should get ```haskell module...

If we parse this input: ```haskell import qualified MegaModule as M ( (>>>) -- (1) , ()`, `-- (2)` appears in annotations for `(

`addAnnotationsForPretty` inserts a leading space for `HsVar`s (or `RdrName`s, I haven't dug in). This is the wrong thing to do in the case of a `BodyStmt`, which will break the...

Similar to #52, ~~~~.hs data StupidExistential a where StupidExistential :: forall a . StupidExistential a ~~~~ breaks when using exactprint on just this module element (I think layouting the whole...

Considering the elements of annsDP, and the anchor of DPs for the contained elements: - for comments `(AnnComment _, _someDP)` the DP is relative to the "current cursor position", i.e....

Here is an example: ```haskell -- | Something. data Foo = Foo Int Int -- ^ Foo | Bar Bool Bool -- ^ Bar ``` `-- ^ Bar` get attached...

We have noticed an inadequate behavior with respect to how comment annotations are generated for import sections. Indeed, it's rather counter-intuitive, for example: ```haskell import Foo -- (1) import Bar...

The output's pretty confusing, so only including a subset of it: ``` > /tmp/stackage-build13/ghc-exactprint-0.5.2.1$ dist/build/test/test GHC8 ^MCases: 856 Tried: 0 Errors: 0 Failures: 0^MCases: 856 Tried: 1 Errors: 0 Failures:...

I'm using `ghc-exactprint` to modify some source code. I parse a haskell module using `parseModuleFromString` and obtain `(Anns, ParsedSource)` Then I modify that `ParsedSource` and obtain a new `ParsedSource`. I...

I'm getting a test suite failure building `ghc-exactprint` with GHC 8.2.2: ``` Running 1 test suites... Test suite test: RUNNING... GHC82 ### Failure in: 1:Round-trip tests:0:ghc710:20:Control.hs tests/Test/Common.hs:123 Control.hs ### Failure...