Add examples of higher ranked polymorphism

This commit is contained in:
Martin Fredin 2023-05-24 22:12:45 +02:00
parent 789774d802
commit c1768b0161
5 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,8 @@
applyId : (forall a. a -> a) -> b -> b
applyId f x = f x
id : a -> a
id x = x
main = applyId id 145