-
-
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.
- Loading branch information
Showing
17 changed files
with
143 additions
and
4 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,3 @@ | ||
packages: | ||
testdata/ | ||
info-util/ |
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,20 @@ | ||
module InfoUtil | ||
( Eq | ||
, Ord | ||
, Foo (..) | ||
, Bar (..) | ||
, Baz | ||
) | ||
where | ||
|
||
import Prelude (Eq, Ord) | ||
|
||
data Foo = Foo1 | Foo2 | ||
deriving (Eq, Ord) | ||
|
||
data Bar = Bar1 | Bar2 | Bar3 | ||
deriving (Eq, Ord) | ||
|
||
class Baz t | ||
instance Baz Foo | ||
instance Baz Bar |
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,18 @@ | ||
name: info-util | ||
version: 0.1.0.0 | ||
-- synopsis: | ||
-- description: | ||
license: BSD3 | ||
author: Author name here | ||
maintainer: [email protected] | ||
copyright: 2017 Author name here | ||
category: Web | ||
build-type: Simple | ||
cabal-version: >=1.10 | ||
|
||
library | ||
exposed-modules: | ||
InfoUtil | ||
build-depends: base >= 4.7 && < 5 | ||
default-language: Haskell2010 | ||
ghc-options: -Wall -fwarn-unused-imports |
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 TI_Info (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :i Foo | ||
-- type Foo :: * | ||
-- data Foo = Foo1 | Foo2 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Foo -- Defined in ‘InfoUtil’ |
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,5 @@ | ||
module TI_Info (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :i Foo |
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 TInfo (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :info Foo | ||
-- type Foo :: * | ||
-- data Foo = Foo1 | Foo2 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Foo -- Defined in ‘InfoUtil’ |
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,5 @@ | ||
module TInfo (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :info Foo |
11 changes: 11 additions & 0 deletions
11
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,11 @@ | ||
module TInfoBang (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :info! Foo | ||
-- type Foo :: * | ||
-- data Foo = Foo1 | Foo2 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Baz Foo -- Defined in ‘InfoUtil’ |
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,5 @@ | ||
module TInfoBang (Eq, Ord, Foo) where | ||
|
||
import InfoUtil (Eq, Ord, Foo) | ||
|
||
-- >>> :info! Foo |
17 changes: 17 additions & 0 deletions
17
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,17 @@ | ||
module TInfoBangMany (Eq, Ord, Foo, Bar) where | ||
|
||
import InfoUtil (Eq, Ord, Foo, Bar) | ||
|
||
-- >>> :info! Foo Bar | ||
-- type Foo :: * | ||
-- data Foo = Foo1 | Foo2 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Baz Foo -- Defined in ‘InfoUtil’ | ||
-- type Bar :: * | ||
-- data Bar = Bar1 | Bar2 | Bar3 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Bar -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Bar -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Baz Bar -- Defined in ‘InfoUtil’ |
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,5 @@ | ||
module TInfoBangMany (Eq, Ord, Foo, Bar) where | ||
|
||
import InfoUtil (Eq, Ord, Foo, Bar) | ||
|
||
-- >>> :info! Foo Bar |
15 changes: 15 additions & 0 deletions
15
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,15 @@ | ||
module TInfoMany (Eq, Ord, Foo, Bar) where | ||
|
||
import InfoUtil (Eq, Ord, Foo, Bar) | ||
|
||
-- >>> :info Foo Bar | ||
-- type Foo :: * | ||
-- data Foo = Foo1 | Foo2 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Foo -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Foo -- Defined in ‘InfoUtil’ | ||
-- type Bar :: * | ||
-- data Bar = Bar1 | Bar2 | Bar3 | ||
-- -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Eq Bar -- Defined in ‘InfoUtil’ | ||
-- instance [safe] Ord Bar -- Defined in ‘InfoUtil’ |
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,5 @@ | ||
module TInfoMany (Eq, Ord, Foo, Bar) where | ||
|
||
import InfoUtil (Eq, Ord, Foo, Bar) | ||
|
||
-- >>> :info Foo Bar |
This file was deleted.
Oops, something went wrong.
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