haskell / haskell/stylish-haskell

Comments should not be stripped from 'import' statements and language pragmas

Open
#39 13 comments 0 reactions 0 assignees View on GitHub
bug lossy
Dominant language
Haskell
Stars
1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

Consider:

``` haskell
module Foo where
import Data.Monoid -- from base
import Data.List -- from base
```

And then:

```
$ stylish-haskell /tmp/Foo.hs
module Foo where
import Data.List
import Data.Monoid
$
```

The comments shouldn't be stripped from the end, ideally. At the very least this is inconsistent with the default behavior which will preserve comments in most other positions.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.