Compare commits

..

2 commits

2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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.