stylish-haskell icon indicating copy to clipboard operation
stylish-haskell copied to clipboard

Add support for post qualified import formatting.

Open jhmcstanton opened this issue 3 years ago • 4 comments

Adds an option to use post qualified module imports.

Related to #284 Resolves #334

Let me know if any more tests or changes are needed.

jhmcstanton avatar Oct 30 '20 00:10 jhmcstanton

Not sure what the issue is with that mac build, classic case of "works on my machine". Not sure that I have access to rerun the build though, can someone with access trigger that for me (or show me how) ?

jhmcstanton avatar Oct 30 '20 01:10 jhmcstanton

This is exactly what I'm looking for right now.

It seems like the build error is the same one I got on #337, @jaspervdj, could we ignore it again for this PR?

akrmn avatar Nov 19 '20 10:11 akrmn

hm, this seems to fail on post qualified explicit imports:

import Data.Aeson qualified as JSON (Value)

gives me:

RealSrcSpan SrcSpanOneLine "./test.hs": parse error on input `qualified'

I'll add a few failing test cases later today

akrmn avatar Nov 19 '20 11:11 akrmn

@jhmcstanton would it be much work now to rebase this against main?

EncodePanda avatar Apr 09 '21 08:04 EncodePanda