-
-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fix for correct placement of import (#2100)
- Loading branch information
1 parent
790afc6
commit a425a85
Showing
53 changed files
with
592 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
-- | Some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
-- | Some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
12 changes: 12 additions & 0 deletions
12
ghcide/test/data/import-placement/CommentAtTopMultipleComments.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
-- | Another comment | ||
data SomethingElse = SomethingElse | ||
|
||
-- | Some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
11 changes: 11 additions & 0 deletions
11
ghcide/test/data/import-placement/CommentAtTopMultipleComments.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
-- | Another comment | ||
data SomethingElse = SomethingElse | ||
|
||
-- | Some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
9 changes: 9 additions & 0 deletions
9
ghcide/test/data/import-placement/CommentCurlyBraceAtTop.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
{- Some comment -} | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
{- Some comment -} | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
data Something = Something | ||
|
||
-- | some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
data Something = Something | ||
|
||
-- | some comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
import Data.Char | ||
import Data.Monoid | ||
|
||
{- Some multi | ||
line comment | ||
-} | ||
class Semigroup a => SomeData a | ||
|
||
-- | a comment | ||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
import Data.Char | ||
|
||
{- Some multi | ||
line comment | ||
-} | ||
class Semigroup a => SomeData a | ||
|
||
-- | a comment | ||
instance SomeData All |
8 changes: 8 additions & 0 deletions
8
ghcide/test/data/import-placement/LangPragmaModuleAtTop.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test where | ||
import Data.Monoid | ||
|
||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test where | ||
|
||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
10 changes: 10 additions & 0 deletions
10
ghcide/test/data/import-placement/LangPragmaModuleExplicitExports.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
9 changes: 9 additions & 0 deletions
9
ghcide/test/data/import-placement/LangPragmaModuleExplicitExports.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
11 changes: 11 additions & 0 deletions
11
ghcide/test/data/import-placement/LangPragmaModuleWithComment.expected.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test | ||
( SomeData(..) | ||
) where | ||
import Data.Monoid | ||
|
||
-- comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
10 changes: 10 additions & 0 deletions
10
ghcide/test/data/import-placement/LangPragmaModuleWithComment.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE OverloadedStrings #-} | ||
|
||
module Test | ||
( SomeData(..) | ||
) where | ||
|
||
-- comment | ||
class Semigroup a => SomeData a | ||
|
||
instance SomeData All |
Oops, something went wrong.