Closed konn closed 7 years ago
It does this to import {-# SOURCE #-} Module
imports as well.
How should the following examples format for each Align value? import qualified MyQualifiedModule QM import MySimpleModule import {-# SOURCE #-} MyModule1 import {-# SOURCE #-} qualified MyModule2 as MM import safe MyModule3 import safe qualified MyModule4 as M4 import "base" Data.Foldable (foldMap) import qualified "containers" Data.Map as Map
It's better to just skip them from being formatted instead of dropping the information like it's now.
It has been fixed in #143.
If we apply
stylish-haskell
to the following code,safe
import is gone...before:
after: