Skip to content

Commit db7f212

Browse files
author
Yuji Yamamoto
committed
Complete example of visible dependent quantification
1 parent c41c131 commit db7f212

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

preprocessed-site/posts/2019/hiw-ghc-future.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,14 @@ Valid Hole Fitsの検索方法をその場で微調整したい、というと
9595
例えば
9696

9797
```haskell
98+
> :set -XKindSignatures
99+
> :set -XPolyKinds
100+
> data SomeType k (a :: k)
98101
> :kind SomeType
99102
SomeType :: forall k -> k -> *
100103
```
101104

102-
`SomeType :: forall k -> k -> *``forall k ->`という部分です。
105+
における、`SomeType :: forall k -> k -> *``forall k ->`という部分です。
103106
現在のHaskellで`forall k`などと書くときは、必ず
104107

105108
```haskell

0 commit comments

Comments
 (0)