-
-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
86 additions
and
58 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
2 changes: 1 addition & 1 deletion
2
...lass-plugin/test/testdata/T10.expected.hs → .../test/testdata/CodeLensSimple.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T10 where | ||
module CodeLensSimple where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T10.hs → ...ss-plugin/test/testdata/CodeLensSimple.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module T10 where | ||
module CodeLensSimple where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
...lass-plugin/test/testdata/T14.expected.hs → .../testdata/CodeLensWithGHC2021.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE GHC2021 #-} | ||
module T14 where | ||
module CodeLensWithGHC2021 where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T14.hs → ...ugin/test/testdata/CodeLensWithGHC2021.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE GHC2021 #-} | ||
module T14 where | ||
module CodeLensWithGHC2021 where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
...lass-plugin/test/testdata/T13.expected.hs → ...t/testdata/CodeLensWithPragma.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T13 where | ||
module CodeLensWithPragma where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T13.hs → ...lugin/test/testdata/CodeLensWithPragma.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T13 where | ||
module CodeLensWithPragma where | ||
|
||
data A | ||
instance Eq A where | ||
|
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,6 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module Inline where | ||
|
||
data A | ||
instance Eq A where (==) :: A -> A -> Bool | ||
(==) = _ |
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T12.hs → .../hls-class-plugin/test/testdata/Inline.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module T12 where | ||
module Inline where | ||
|
||
data A | ||
instance Eq A where (==) = _ |
2 changes: 1 addition & 1 deletion
2
...class-plugin/test/testdata/T9.expected.hs → ...est/testdata/InsertPragmaOnce.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
2 changes: 1 addition & 1 deletion
2
plugins/hls-class-plugin/test/testdata/T9.hs → ...-plugin/test/testdata/InsertPragmaOnce.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module T9 where | ||
module InsertPragmaOnce where | ||
|
||
data A aaa | ||
instance Applicative A |
4 changes: 2 additions & 2 deletions
4
...lass-plugin/test/testdata/T12.expected.hs → ...data/InsertWithGHC2021Enabled.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
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T16.hs → ...test/testdata/InsertWithGHC2021Enabled.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE GHC2021#-} | ||
module T16 where | ||
module InsertWithGHC2021Enabled where | ||
|
||
data A | ||
instance Eq A |
2 changes: 1 addition & 1 deletion
2
...class-plugin/test/testdata/T7.expected.hs → ...est/testdata/InsertWithPragma.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T7 where | ||
module InsertWithPragma where | ||
|
||
data A | ||
instance Eq A where | ||
|
2 changes: 1 addition & 1 deletion
2
plugins/hls-class-plugin/test/testdata/T8.hs → ...-plugin/test/testdata/InsertWithPragma.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T8 where | ||
module InsertWithPragma where | ||
|
||
data A | ||
instance Eq A |
2 changes: 1 addition & 1 deletion
2
...class-plugin/test/testdata/T8.expected.hs → .../testdata/InsertWithoutPragma.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T8 where | ||
module InsertWithoutPragma where | ||
|
||
data A | ||
instance Eq A where | ||
|
4 changes: 4 additions & 0 deletions
4
plugins/hls-class-plugin/test/testdata/InsertWithoutPragma.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,4 @@ | ||
module InsertWithoutPragma where | ||
|
||
data A | ||
instance Eq A |
2 changes: 1 addition & 1 deletion
2
...lass-plugin/test/testdata/T11.expected.hs → ...est/testdata/LocalClassDefine.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE InstanceSigs #-} | ||
module T11 where | ||
module LocalClassDefine where | ||
|
||
data A | ||
class F a where | ||
|
2 changes: 1 addition & 1 deletion
2
...ins/hls-class-plugin/test/testdata/T11.hs → ...-plugin/test/testdata/LocalClassDefine.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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module T11 where | ||
module LocalClassDefine where | ||
|
||
data A | ||
class F a where | ||
|
10 changes: 10 additions & 0 deletions
10
plugins/hls-class-plugin/test/testdata/Qualified.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 InstanceSigs #-} | ||
module Qualified where | ||
import qualified QualifiedA | ||
|
||
class F a where | ||
f :: a | ||
|
||
instance F QualifiedA.A where | ||
f :: QualifiedA.A | ||
f = undefined |
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 Qualified where | ||
import qualified QualifiedA | ||
|
||
class F a where | ||
f :: a | ||
|
||
instance F QualifiedA.A where | ||
f = undefined |
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,3 @@ | ||
module QualifiedA where | ||
|
||
data A |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
plugins/hls-class-plugin/test/testdata/TypeFamily.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 TypeFamilies #-} | ||
{-# LANGUAGE InstanceSigs #-} | ||
module TypeFamily where | ||
|
||
class F a where | ||
type Elem a | ||
f :: Elem a -> a | ||
|
||
instance Eq a => F [a] where | ||
f :: Eq a => Elem [a] -> [a] | ||
f = _ |
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 TypeFamilies #-} | ||
module TypeFamily where | ||
|
||
class F a where | ||
type Elem a | ||
f :: Elem a -> a | ||
|
||
instance Eq a => F [a] where | ||
f = _ |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
cradle: | ||
direct: | ||
arguments: [-XHaskell2010, T15A] | ||
arguments: [-XHaskell2010, QualifiedA] |