Compare commits
2 commits
9db42001f4
...
ca5e28e244
Author | SHA1 | Date | |
---|---|---|---|
Sanchayan Maity | ca5e28e244 | ||
Sanchayan Maity | 0686c83ab2 |
|
@ -57,7 +57,7 @@ This is the final tagless style.
|
|||
```haskell
|
||||
data Tree v where
|
||||
Leaf :: forall v. v -> Tree v
|
||||
Node :: forall v. Tree v -> Tree v -> Tree v.
|
||||
Node :: forall v. Tree v -> Tree v -> Tree v
|
||||
```
|
||||
and
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ https://gist.github.com/CMCDragonkai/b203769c588caddf8cb051529339635c
|
|||
|
||||
http://iveselov.info/posts/2012-08-30-existential-types.html
|
||||
|
||||
https://markkarpov.com/post/existential-quantification.html
|
||||
|
||||
Great explanation by Anupam Jain in FPNCR Telegram channel :)
|
||||
|
||||
Everything gets a forall.
|
||||
|
|
Loading…
Reference in a new issue