-
-
Notifications
You must be signed in to change notification settings - Fork 408
Adds :kind
and :kind!
commands to Eval Plugin
#345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
1428464
a53ae12
9767420
92ceb7a
b9a59bf
c4a3134
ee9fc0e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{-# LANGUAGE DataKinds, TypeOperators #-} | ||
module T10 where | ||
import GHC.TypeNats ( type (+) ) | ||
|
||
type Dummy = 1 + 1 | ||
|
||
-- >>> type N = 1 | ||
-- >>> type M = 40 | ||
-- >>> :kind! N + M + 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{-# LANGUAGE DataKinds, TypeOperators #-} | ||
module T10 where | ||
import GHC.TypeNats ( type (+) ) | ||
|
||
type Dummy = 1 + 1 | ||
|
||
-- >>> type N = 1 | ||
-- >>> type M = 40 | ||
-- >>> :kind! N + M + 1 | ||
-- N + M + 1 :: Nat | ||
-- = 42 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module T11 where | ||
|
||
-- >>> :kind! a |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module T11 where | ||
|
||
-- >>> :kind! a | ||
-- Not in scope: type variable ‘a’ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{-# LANGUAGE DataKinds, TypeOperators #-} | ||
module T12 where | ||
import GHC.TypeNats ( type (+) ) | ||
|
||
type Dummy = 1 + 1 | ||
|
||
-- >>> type N = 1 | ||
-- >>> type M = 40 | ||
-- >>> :kind N + M + 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{-# LANGUAGE DataKinds, TypeOperators #-} | ||
module T12 where | ||
import GHC.TypeNats ( type (+) ) | ||
|
||
type Dummy = 1 + 1 | ||
|
||
-- >>> type N = 1 | ||
-- >>> type M = 40 | ||
-- >>> :kind N + M + 1 | ||
-- N + M + 1 :: Nat |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module T13 where | ||
|
||
-- >>> :kind a |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module T13 where | ||
|
||
-- >>> :kind a | ||
-- Not in scope: type variable ‘a’ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
module T9 where | ||
import Data.Proxy | ||
import Data.Proxy (Proxy(..)) | ||
|
||
type P = Proxy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you let me know why have you changed this test? It seems irrelevant to me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, that change is not directly related to my change; but without this hack, at least on my laptop, But, yes, this change is semantically separate from this pull-request. Should I file this workaround as another pull-request? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it is worthwhile to post that as an issue, but for the separated PR, it's OK to stay this change as-is. |
||
|
||
-- >>> Proxy :: Proxy 3 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
module T9 where | ||
import Data.Proxy | ||
import Data.Proxy (Proxy(..)) | ||
|
||
type P = Proxy | ||
|
||
-- >>> Proxy :: Proxy 3 | ||
-- Proxy |
Uh oh!
There was an error while loading. Please reload this page.