Add examples of higher ranked polymorphism
This commit is contained in:
parent
789774d802
commit
c1768b0161
5 changed files with 36 additions and 0 deletions
8
sample-programs/working/rank2.crf
Normal file
8
sample-programs/working/rank2.crf
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue