-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] Add eval plugin info cmd tests
- Loading branch information
Showing
11 changed files
with
133 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module TI_Info where | ||
|
||
-- >>> :i Bool | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ |
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 TI_Info where | ||
|
||
-- >>> :i Bool |
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 TInfo where | ||
|
||
-- >>> :info Bool | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ |
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 TInfo where | ||
|
||
-- >>> :info Bool |
40 changes: 40 additions & 0 deletions
40
plugins/hls-eval-plugin/test/testdata/TInfoBang.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,40 @@ | ||
module TInfoBang where | ||
|
||
-- >>> :info! Bool | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Ix Bool -- Defined in ‘GHC.Ix’ | ||
-- instance Generic Bool -- Defined in ‘GHC.Generics’ | ||
-- instance SingI 'True -- Defined in ‘GHC.Generics’ | ||
-- instance SingI 'False -- Defined in ‘GHC.Generics’ | ||
-- instance SingKind Bool -- Defined in ‘GHC.Generics’ | ||
-- type instance Rep Bool | ||
-- = D1 | ||
-- ('MetaData "Bool" "GHC.Types" "ghc-prim" 'False) | ||
-- (C1 ('MetaCons "False" 'PrefixI 'False) U1 | ||
-- :+: C1 ('MetaCons "True" 'PrefixI 'False) U1) | ||
-- -- Defined in ‘GHC.Generics’ | ||
-- type instance DemoteRep Bool = Bool -- Defined in ‘GHC.Generics’ | ||
-- data instance Sing a where | ||
-- STrue :: Sing 'True | ||
-- SFalse :: Sing 'False | ||
-- -- Defined in ‘GHC.Generics’ | ||
|
||
|
||
-- >>> :info! Bool | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ |
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 @@ | ||
module TInfoBang where | ||
|
||
-- >>> :info! Bool | ||
|
||
|
||
-- >>> :info! Bool |
23 changes: 23 additions & 0 deletions
23
plugins/hls-eval-plugin/test/testdata/TInfoBangMany.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,23 @@ | ||
module TInfoBangMany where | ||
|
||
-- >>> :info! Bool Ordering | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ | ||
-- type Ordering :: * | ||
-- data Ordering = LT | EQ | GT | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Bounded Ordering -- Defined in ‘GHC.Enum’ | ||
-- instance Enum Ordering -- Defined in ‘GHC.Enum’ | ||
-- instance Eq Ordering -- Defined in ‘GHC.Classes’ | ||
-- instance Monoid Ordering -- Defined in ‘GHC.Base’ | ||
-- instance Ord Ordering -- Defined in ‘GHC.Classes’ | ||
-- instance Read Ordering -- Defined in ‘GHC.Read’ | ||
-- instance Semigroup Ordering -- Defined in ‘GHC.Base’ | ||
-- instance Show Ordering -- Defined in ‘GHC.Show’ |
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 TInfoBangMany where | ||
|
||
-- >>> :info! Bool Ordering |
23 changes: 23 additions & 0 deletions
23
plugins/hls-eval-plugin/test/testdata/TInfoMany.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,23 @@ | ||
module TInfoMany where | ||
|
||
-- >>> :info Bool Ordering | ||
-- type Bool :: * | ||
-- data Bool = False | True | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Enum Bool -- Defined in ‘GHC.Enum’ | ||
-- instance Show Bool -- Defined in ‘GHC.Show’ | ||
-- instance Eq Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Ord Bool -- Defined in ‘GHC.Classes’ | ||
-- instance Read Bool -- Defined in ‘GHC.Read’ | ||
-- instance Bounded Bool -- Defined in ‘GHC.Enum’ | ||
-- type Ordering :: * | ||
-- data Ordering = LT | EQ | GT | ||
-- -- Defined in ‘GHC.Types’ | ||
-- instance Enum Ordering -- Defined in ‘GHC.Enum’ | ||
-- instance Show Ordering -- Defined in ‘GHC.Show’ | ||
-- instance Eq Ordering -- Defined in ‘GHC.Classes’ | ||
-- instance Monoid Ordering -- Defined in ‘GHC.Base’ | ||
-- instance Ord Ordering -- Defined in ‘GHC.Classes’ | ||
-- instance Semigroup Ordering -- Defined in ‘GHC.Base’ | ||
-- instance Read Ordering -- Defined in ‘GHC.Read’ | ||
-- instance Bounded Ordering -- Defined in ‘GHC.Enum’ |
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 TInfoMany where | ||
|
||
-- >>> :info Bool Ordering |